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星跟蹤圖

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

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

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

概覽

名稱與所有者dropzone/dropzone
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證Other
發布數117
最新版本名稱v6.0.0-beta.2 (發布於 2021-11-29 10:14:14)
第一版名稱v0.1.1 (發布於 2012-02-12 17:41:51)
創建於2012-02-12 16:19:18
推送於2023-12-07 05:43:57
最后一次提交2020-07-28 18:51:24
星數17.8k
關注者數400
派生數3.3k
提交數1.1k
已啟用問題?
問題數1842
打開的問題數131
拉請求數79
打開的拉請求數20
關閉的拉請求數161
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

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

去到頂部