An AWSM module that returns upload tokens for S3 objects. Instead of handling uploads yourself with a passthrough, let AWS do the work for you by generating a signed request and let the client upload the file directly to S3.
jaws project create
cd
into the project directory.npm install --save awsm-s3tokenvendor
jaws env set <stage> all UPLOAD_TIMEOUT <value>
, where <value>
is the timeout in minutes.jaws env set <stage> all UPLOAD_BUCKET <value>
, where <value>
is the name of the S3 Bucket you want your uploads to go to.jaws env set <stage> all UPLOAD_CONTENT_TYPE <value>
, where <value>
is the content type of the upload. For example:
image/png
image/
video/
See Browser Uploads to S3 using HTML POST Forms
Disclaimer: This is currently a WIP. Use at your own risk.