Be warned understand this script before you launch. Anywhere this runs, files can be uploaded. No auth or limiting is built in. Useful for personal use.
Set the config vars at the top of app.py
Template loads dropzone from cdnjs.cloudflare.com
.
python3 -m venv venv
source venv/bin/activate
pip install flask
python3 app.py
Load http://localhost:5000/
in your browser and use the dropzone GUI.
From any terminal:
touch upload_me.txt && echo I am the contents > upload_me.txt
curl -i -X POST -F 'file=@upload_me.txt' "http://localhost:5000/upload" -H 'ContentType: multipart/form-data'
Usage:
In another terminal: