
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
drop-upload
Advanced tools
Small JavaScript library to allow dropping files in textarea.
Via npm:
$ npm install --save drop-upload
Via bower:
$ bower install jquery-miller-columns
Manual installation:
Download the latest release.
Via CDN:
<script src="//cdn.jsdelivr.net/npm/drop-upload/dist/drop-upload.min.js"></script>
No dependency.
Call on the desired element:
// DropUpload([parentSelector], [childSelector], [options]); eg:
DropUpload(document, 'textarea.uploadable-textarea');
First argument is the propagated target, second is the target selector (like in jQuery
$(document).on('event', '.uploadable-textarea', function() {...})), third is the options.
| Key | Default value | Description |
|---|---|---|
| uploadPath | /upload | Path to upload |
| uploadKey | file | Key of the file in upload content |
| uploadingCallback | function (fileName) {...} | The value in the textarea during upload |
| uploadedCallback | function (fileName, path) {...} | The value in the textarea after upload |
| decodeResponseCallback | function (response) {...} | Decoding response |
| timeout | 0 | Timeout for requests (in ms) |
| Event name | Description |
|---|---|
| drop-upload:start | Upload started |
| drop-upload:end | Upload ended |
| drop-upload:success | Upload ended with success |
| drop-upload:error | Upload failed |
| drop-upload:timeout | Upload failed with timeout |
This project is under MIT License.
FAQs
JavaScript library to upload files via drop to textarea
We found that drop-upload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.