🏡 Home
Back to gemlog

Direct-to-S3 Uploads in Node.js

Posted on 17 January 2014

A while ago I wrote an article [1] for Heroku [2]'s Dev Center on carrying out direct uploads to S3 using a Python app for signing the PUT request. Specifically, the article focussed on Flask but the concept is also applicable to most other Python web frameworks.

1
2

I've recently had to implement something similar, but this time as part of an Node.js [3] application. Since the only difference between the two approaches is literally just the endpoint used to return a signed request URL, I thought I'd post an update on how the endpoint could be constructed in Node.

3

The front-end code in the companion repository demonstrates an example of how the endpoint can be queried to retrieve the signed URL, and is available here [4]. Take a look at that repository's README for information on the front-end dependencies.

4

The full example referenced by the Python article is in a repository [5] hosted by GitHub and may be useful in providing more context.

5
Reply via email
Back to gemlog