Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@baianat/dropper
Advanced tools
A drag and drop file upload library that it friendly and fun to use. It offers great accessibility, validation and a smooth user experience.
A drag and drop file upload library that it friendly and fun to use. It offers great accessibility, validation and a smooth user experience.
You can install dropper
using npm
npm install @baianat/dropper
# or using yarn
yarn add @baianat/dropper
<head>
<link rel="stylesheet" href="dist/css/dropper.css">
</head>
<body>
...
<script type="text/javascript" src="dist/js/dropper.js"></script>
</body>
You need a form element to bind dropper
to it.
<form class="dropper" id="dropper"></form>
Then create new dropper
instance, you have to path the uploading url to it
let dropper = new Dropper('#dropper', {
url: `${server}/upload`
});
dropper
comes with may events that helps you to track file uploading and status
event name | description |
---|---|
uploadFailed | emits when a file uploaded successfully |
uploadSuccees | emits when a file failed to upload |
fileDeleted | emits when an uploaded file deleted |
dropper.on('uploadFailed', ($file) => {
console.log('😭', $file.name, 'uploading failed');
});
Copyright (c) 2017 Baianat
FAQs
A drag and drop file upload library that it friendly and fun to use. It offers great accessibility, validation and a smooth user experience.
The npm package @baianat/dropper receives a total of 2 weekly downloads. As such, @baianat/dropper popularity was classified as not popular.
We found that @baianat/dropper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.