![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@deltablot/dropzone
Advanced tools
This fork exists because upstream isn't maintained anymore. Its goal is to maintain this library in a good state, with mainly bugfixes and possibly minor improvements.
@deltablot/dropzone
Dropzone is a JavaScript library that turns any HTML element into a dropzone. This means that a user can drag and drop a file onto it, and Dropzone will display file previews and upload progress, and handle the upload for you via XHR.
It is fully configurable, can be styled according to your needs and is trusted by thousands.
Install:
$ npm install --save @deltablot/dropzone
# or with yarn:
$ yarn add @deltablot/dropzone
# or with bun:
$ bun add @deltablot/dropzone
First argument is an element to bind to, second argument is the options
object.
Use as ES6 module (recommended):
import { Dropzone } from "@deltablot/dropzone";
const dropzone = new Dropzone("#elementId", { url: "/file/post" });
or use as CommonJS module:
const { Dropzone } = require("@deltablot/dropzone");
const dropzone = new Dropzone("#elementId", { url: "/file/post" });
👉 Checkout our example implementations for different bundlers
Note: this library must be used in a secure context (works only over HTTPS or locally).
CSS
@import "@deltablot/dropzone/src/dropzone";
Use the standalone files like this:
<script src="https://unpkg.com/@deltablot/dropzone@7/dist/dropzone-min.js"></script>
<link
rel="stylesheet"
href="https://unpkg.com/@deltablot/dropzone@7/dist/dropzone.css"
type="text/css"
/>
<div class="my-dropzone"></div>
<script>
// Dropzone has been added as a global variable.
const dropzone = new Dropzone(".my-dropzone", { url: "/file/post" });
</script>
src/options.js
for all available optionsIf you need support please open an issue.
If you have a feature request or want to discuss something, please use the issues as well.
thumbnail(file, data)
and display the image wherever you likeSee the LICENSE file
FAQs
Handles drag and drop of files for you.
The npm package @deltablot/dropzone receives a total of 1,256 weekly downloads. As such, @deltablot/dropzone popularity was classified as popular.
We found that @deltablot/dropzone demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.