Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.0.4
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (26 sloc) 0.555 kb

upload

file upload and progress api

Installation

$ component install component/dropload

Events

  • upload (upload) a file was dropped

Example

var Dropload = require('dropload');
var drop = Dropload(document.getElementById('drop'));

drop.on('error', function(err){
  console.error(err.message);
});

drop.on('upload', function(upload){
  console.log('uploading %s', upload.file.name);
  upload.to('/upload');
});

Running example

Run the Express test server:

$ npm install
$ make test

License

MIT

Jump to Line
Something went wrong with that request. Please try again.