This is a sample project to demonstrate how to upload directly to Amazon S3 via CORS using Flask.
jQuery-File-Upload is used to help as well.
Make sure the permission and CORS configuration of your S3 bucket are set properly.
Fill in these values in app.py:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_KEY
- S3_BUCKET_NAME
Run app.py as usual.
python app.py
Amazon: Browser-Based Uploads Using POST
Amazon: Browser Uploads to S3 using HTML POST Forms