0.1.0 • Published 6 years ago

dnd-upload v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

dnd-upload

Upload files in drag-and-drop way.

Installation

npm install dnd-upload --save

Usage

const uploader = require('dnd-upload');
uploader(elementToDndIn, {
    apiUrl: '/path/to/api',
    data: { /**/ },
    ondragover: function () { /**/ },
    ondragend: function () { /**/ },
    ondrop: function () { /**/ },
    onprogress: function (percent) { /**/ },
    onread: function () { /**/ }
});

Compatibility

  • Chrome

License

MIT

Copyright (c) 2017-present, shenfe

0.1.0

6 years ago