Upload files directly to google storage. Chunked upload functionality is enabled by Dropzone.js
- Export the flask environment variable
export FLASK_APP=main.py
- Run with
flask run
- If debug mode needs to be enabled for dev,
export FLASK_DEBUG=1
Note 1: As usual, activate your virtualenvironment and install requirements before attempting to run the app
source venv/bin/activate
then pip install -r requirements.txt
The provided procfile ensures seamless deployment to heroku.
https://gs-chunked-uploads.herokuapp.com/
Store the json credentials key in the same directory as main.py
file.
Remove indicated lines of code that delete uploads immediately they succeed. This is currently meant to conserve space on the demo website backend.