DropzoneJS

Dropzone.js是一个轻量级的JavaScript库,将HTML元素转换为dropzone。 这意味着用户可以将文件拖放到其上,并且文件通过AJAX上传到服务器。(Dropzone.js is a light weight JavaScript library that turns an HTML element into a dropzone. This means that a user can drag and drop a file onto it, an

Github stars Tracking Chart

DropzoneJS是一个开源库,提供拖曳文件上传与图像预览。它是轻量级的,不依赖于任何其他库(如jQuery),是高度可定制的。

基本上Dropzone只是为你做了所有繁重的工作,并公开了一个非常高级的API,你可以用它来构建你的用户界面。Dropzone的主要特点是它可以监听事件,所以你可以对每一个变化做出反应。正如你可以看到,它只是基本的bootstrap HTML,它定义了一个文件应该是什么样子。 最重要的方面是,在标记中有data-dz- *标记,因此Dropzone可以自动更新元素。

优点
  • 没有jQuery依赖
  • 极其简单的配置,所以它看起来正是你想要它看起来
  • 快速。
主要功能
  • 图片缩略图预览。 只需注册回调 thumbnail(file, data),并在你喜欢的地方显示图像
  • 视网膜启用
  • 多个文件和同步上传
  • 进度更新
  • 支持大文件
  • 完整的主题。 Dropzone的外观和感觉只是默认的主题。 您可以通过覆盖默认事件侦听器自己定义一切。
  • 经过充分测试

Overview

Name With Ownerdropzone/dropzone
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 3)
Platform
License:Other
Release Count117
Last Release Namev6.0.0-beta.2 (Posted on 2021-11-29 10:14:14)
First Release Namev0.1.1 (Posted on 2012-02-12 17:41:51)
Created At2012-02-12 16:19:18
Pushed At2023-12-07 05:43:57
Last Commit At2020-07-28 18:51:24
Stargazers Count17.8k
Watchers Count400
Fork Count3.3k
Commits Count1.1k
Has Issues Enabled
Issues Count1843
Issue Open Count132
Pull Requests Count79
Pull Requests Open Count20
Pull Requests Close Count161
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

Dropzone.js is a light weight JavaScript library that turns an HTML element into a dropzone.
This means that a user can drag and drop a file onto it, and the file gets uploaded to the server via AJAX.


If you want support, please use stackoverflow with the dropzone.js tag and not the
GitHub issues tracker. Only post an issue here if you think you discovered a bug or have a feature request.


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

This is no longer the official repository for Dropzone. I have switched to gitlab.com
as the primary location to continue development.

There are multiple reasons why I am switching from GitHub to GitLab, but a few of the reasons are the
issue tracker that GitHub is providing, drowning me in issues that I am unable to categorise or prioritize properly,
the lack of proper continuous integration, and build files. I don't want the compiled .js files in my repository, and
people regularly commit changes to the compiled files and create pull requests with them.

I will write a blog post soon, that goes into detail about why I am doing the switch.

This repository will still remain, and always host the most up to date versions of dropzone, but only the distribution
files!

MIT License

To the top