=> 🏡 Home | Back to gemlog
The Heroku Dev Center [1] is a repository of guides and articles to provide support for those writing applications to be run on the Heroku [2] platform.
I recently contributed an article for carrying out Direct to S3 File Uploads in Python [3], 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.
=> 3
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 [4] 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!
=> 4
=> Reply via email | Back to gemlog
text/gemini;lang=en-GB
This content has been proxied by September (ba2dc).