Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Latest commit

 

History

History
36 lines (20 loc) · 927 Bytes

README.rst

File metadata and controls

36 lines (20 loc) · 927 Bytes

flask-s3

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.

Using

  • 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

Useful Docs

Amazon: Browser-Based Uploads Using POST

Amazon: Browser Uploads to S3 using HTML POST Forms

Amazon: Enabling Cross-Origin Resource Sharing

jQuery-File-Upload: Upload directly to S3