0.1.0 • Published 6 years ago
dnd-upload v0.1.0
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
Copyright (c) 2017-present, shenfe
0.1.0
6 years ago