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

heryandi/flask-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Direct upload to Amazon S3 via CORS using Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published