Skip to content

Demo app for streamed uploads to S3 in Node/JavaScript.

License

Notifications You must be signed in to change notification settings

scripting/s3BigUpload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

s3BigUpload

S3 can handle streamed uploads, this example shows how, in Node/JavaScript.

The story

I'm working on an app that upstreams files from the user's desktop to a location on S3.

I wondered if Amazon's API can do streamed uploads, and found that it can, but I couldn't get the example code to correctly upload files. I worked on it and this is the result.

So, as I like to do, I prepared a hello world type app that has been tested, and works, and is complete.

How to

  1. Download the folder, open it in your terminal app, cd into the folder.

  2. Make sure your Amazon credentials are accessible, following the instructions on the AWS site.

  3. Change the values of localFilePath, filetype, acl, s3bucket and s3path to point to the file you want to upload and the location you want it uploaded to.

  4. node uploadbigfile.js

Questions, comments

Post an issue here. I can't support S3, but if you spot a problem I want to know about it.

Dave Winer, September 2017

About

Demo app for streamed uploads to S3 in Node/JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages