最好的拖拽文件批理上传JS库
jopen 11年前
开发人员需要在他们的项目中添加文件上传功能,而且需要带有进度条,显示文件大小和图像预览等功能时,这可不是很容易添加的功能。以下介绍两个开源的拖放文件上传库,刚好可以解决此问题。基于jQuery和CSS,容于使用。这些文件上传库有非常优雅的界面来轻松上传任意数量的文件。
1. Dropzonejs
Dropzone.js is an open source library to upload your file using drag and drop with image preview. Dropzone.js works with jQuery. You can use dropzone.js after adding its JavaScript file with jQuery.
jQuery file upload also a very beautiful and useful open source library to file upload. This can be used with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports HTML5 file upload.