Go to file
2016-05-23 20:30:52 +01:00
static removed all JS dependencies 2015-04-24 11:36:55 +01:00
templates moved to es6 syntax 2016-05-23 20:30:52 +01:00
.gitignore added gitignore 2016-05-19 23:23:59 +01:00
application.py moved to es6 syntax 2016-05-23 20:30:52 +01:00
README.md moved to es6 syntax 2016-05-23 20:30:52 +01:00
requirements.txt removed unused dependency 2016-05-20 18:08:45 +01:00

FlaskDirectUploader

Licensing

The files in this repository are, unless stated otherwise, released under the Apache License. You are free to redistribute this code with or without modification. The full license text is available here.

Direct-to-S3 uploads in a Python application running on Heroku

Simple example demonstrating how to accomplish a direct upload to Amazon S3 in a Python web application.

The example focuses on Flask as the web framework and is targeted for use on the Heroku platform. However, nearly all of the code could be used as-is in other Python frameworks (such as Bottle and Django). An example using Python 3 and Django is available here.

This is the companion repository to the Heroku article, Direct to S3 File Uploads in Python.

This code is mostly ready to be run as cloned, but a function update_account() will need to be defined to handle the storing of the POSTed information.

Running the application

Deploying the application

See the article Deploying with Git for more detailed information on deploying to Heroku.

  • Download and install the Heroku toolbelt
  • Commit your application to a local Git repository (e.g. git init, git add ., git commit -m "version 1 commit", etc.)
  • Create the application on Heroku by adding a Git remote ($ heroku create)
  • Push your code to the new Heroku repo ($ git push heroku master)