upload

file upload and progress api

Installation

$ component install component/upload

Events

API

Upload(file)

Initialize an Upload with the given file, where file
is a File object, for example from a input.files[0] FileList.

var upload = new Upload(file);
var upload = Upload(file);

Upload#to(path)

POST the multipart upload to path.

upload.to('/upload');
upload.on('progress', reportProgress);
upload.on('end', done);

Running tests

Run the Express test server:

$ npm install
$ make test

License

MIT