file upload and progress api
$ component install component/upload
erroran error occurredabortupload was abortedprogress(e) upload in progress (e.percent,e.totalSizeetc)endupload is complete
Initialize an Upload with the given file, where file
is a File object, for example from a input.files[0]FileList.
varupload=newUpload(file);varupload=Upload(file);POST the multipart upload to path and invoke fn(err, res).
upload.to('/upload');upload.on('progress',reportProgress);upload.on('end',done);Run the Express test server:
$ npm install
$ make test
MIT