Giter Site home page Giter Site logo

gitauharrison / handling-file-uploads-in-flask Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 20.33 MB

How to safely add uploaded files to your flask database and render it

Home Page: https://handling-file-uploads.herokuapp.com/

Shell 0.42% Python 70.50% HTML 25.80% Mako 3.28%
flask file-upload sqlalchemy flask-wtf python

handling-file-uploads-in-flask's Introduction

Flask File Uploads

One feature of web applications is the ability to upload a file to an application. It is very common to see applications allow users to upload images for their avatar among other file types. This application shows how that feature can be implemented in Flask.

File Upload

Features

  • File Upload

Tools Used

  • Flask Framework
  • Twitter Bootstrap for styling
  • Python3 for programming
  • Flask-WTF for form creation

Contributors

Testing

To test the project, youcan clone this repo to your local machine by running the command below in your terminal:

$ git clone git@github.com:GitauHarrison/handling-file-uploads-in-flask.git

Create and activate your virtual environment before running the flask server:

$ mkvirtualenv file_upload  # I am using virtualenvwrapper 

Install used dependancies by running:

(file_upload)$ pip3 install -r requirements.txt

Run the application:

(file_upload)$ flask run

Deployment

Learn

If you would like to see how the application can be built from scratch, here is an article you can refer to.

References

handling-file-uploads-in-flask's People

Contributors

gitauharrison avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shuxiaokai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.