🖖 Will Webberley

~/-projects-notes-twitter-github

More notes

Contribution to Heroku Dev Center

7 May 2013 (6 years ago)

The Heroku Dev Center is a repository of guides and articles to provide support for those writing applications to be run on the Heroku platform.

I recently contributed an article for carrying out Direct to S3 File Uploads in Python, as I have previously used a very similar approach to interface with Amazon's Simple Storage Service in one of my apps running on Heroku.

The approach discussed in the article focuses on avoiding as much server-side processing as possible, with the aim of preventing the app's web dynos from becoming too tied up and unable to respond to further requests. This is done by using client-side JavaScript to asynchronously carry out the upload directly to S3 from the web browser. The only necessary server-side processing involves the generation of a temporarily-signed (using existing AWS credentials) request, which is returned to the browser in order to allow the JavaScript to successfully make the final PUT request.

The guide's companion git repository hopes to demonstrate a simple use-case for this system. As with all of the Heroku Dev Center articles, if you have any feedback (e.g. what could be improved, what helped you, etc.), then please do provide it!

© Will Webberley 2019