s3
S3 client upload library
Installation
$ component install component/s3
Example
var Upload = ;var drop = ; ;
API
Upload(options)
By default an upload performs a GET request to the "/sign" end-point, which responds with a url signed by your aws secret.
name
remote filename orfile.name
type
content-type orfile.type
route
signature GET route [/sign]
Events:
error
an error occurredabort
upload was abortedprogress
upload in progress (e.percent
etc)end
upload is complete
Testing
First populate ./config.json
with your credentials:
Boot the test server:
$ node test
License
MIT