Share your code.
$ npm install tus
To attach the resumable upload middleware to express or connect, create an upload server by calling
createServer passing it an
options object. Available options are:
- directory - String - Path where to upload the files (required)
- maxFileSize - Number - Maximum file size for uploads, in bytes (optional)
- complete - Function - Callback to inform when a file (all chunks) have been uploaded. Passes the request and response streams, with the metadata assigned to the
uploadproperty within the request. The response must be handled manually if a complete callback is used. (optional)
- path - String - Override path to be returned for Location header when creating new files, for example if you proxy forward requests to a different host/path (optional)
var express =upload = ;var app = ;var port = 3000;app;app;
$ npm test
Licensed under the MIT license.