Here is a simple nodejs code snippet for uploading a file to Amazon S3. It can be use for uploading a file to S3 in two ways.

Directly upload from BLOB Upload form URI