Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dropzone

> 编程语言
Open source

Dropzone is an easy to use drag'n'drop library. It supports image previews and shows nice progress bars.

18.4K stars0 likes0 views
WebsiteGitHub

About

Dropzone is an easy to use drag'n'drop library. It supports image previews and shows nice progress bars.

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's fully configurable, can be styled according to your needs and is trusted by thousands.

Quickstart

Install:

bash
$ npm install dropzone
# or with pnpm:
$ pnpm add dropzone

Use as ES6 module (recommended):

javascript
import { Dropzone } from "dropzone";
const dropzone = new Dropzone("div#myId", { url: "/file/post" });

or use as CommonJS module:

javascript
const { Dropzone } = require("dropzone");
const dropzone = new Dropzone("div#myId", { url: "/file/post" });

👉 Checkout our example implementations for different bundlers

Not using a package manager or bundler?

Use the standalone files like this:

xml
<script src="https://unpkg.com/dropzone@6/dist/dropzone-min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/dropzone@6/dist/dropzone.css" type="text/css" />

<script>
  // Dropzone has been added as a global variable.
  const dropzone = new Dropzone("div.my-dropzone", { url: "/file/post" });
</script>

  • 📚 Full documentation
  • ⚙️ src/options.js for all available options

⚠️ NOTE: Dropzone 6 does not support Internet Explorer. If you still need it, use 5.9.3. See the CHANGELOG for everything that changed in 6.0.0.

Community

If you need support please use the discussions section or stackoverflow with the dropzone.js tag and not the GitHub issues tracker. Only post an issue here if you think you discovered a bug.

If you have a feature request or want to discuss something, please use the discussions as well.

⚠️ Please read the contributing guidelines before you start working on Dropzone!

Main features ✅

  • Beautiful by default
  • Image thumbnail previews. Simply register the callback thumbnail(file, data) and display the image wherever you like
  • High-DPI screen support
  • Multiple files and synchronous uploads
  • Progress updates
  • Support for large files
    • Chunked uploads (upload large files in smaller chunks)
  • Support for Amazon S3 Multipart upload
  • Complete theming. The look and feel of Dropzone is just the default theme. You can define everything yourself by overwriting the default event listeners.
  • Browser image resizing (resize the images before you upload them to your server)
  • Well tested

MIT License

See the LICENSE file

Issues· 112 open

View all issuesOpen on GitHub
  • #2251

    Dropzone: How to upload video to S3 using presigned URL and play it in browser? Almost works, but not quite.

    Updated Aug 6, 2026
  • #2243

    Documentation: Dead external links

    Updated Jan 23, 2025
  • #2164

    maxFilesize in configuration options doc has bad info

    Updated Dec 9, 2024
  • #2239

    acceptedFiles doesn't work (validate) ignoring

    Updated Nov 7, 2024
  • #1984

    Heic format conversion via heic2any

    Updated Aug 30, 2024
  • #2084

    Can't access dataURL

    Updated Jul 25, 2024
  • #1967

    Orientation fix vs Image Exif

    Updated Jun 21, 2024
  • #2262

    bug: Documentation says maxFilesize is bytes but source code says MBs.

    Updated May 29, 2024
  • #2187

    GIF files are converted to png

    Updated Apr 13, 2024
  • #1983

    HTML comment in previewTemplate causes crash

    Updated Mar 27, 2024

> Tags

JavaScriptdrag-and-dropdropzonefile-uploadjavascript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言