ajax upload 实现文件上传
Ajax Upload; A file upload script with progress-bar, drag-and-drop.
?
An older ajax upload plugin, which only used iframe for uploads, and was licensed under MIT license is located on github.This plugin uses XHR for uploading multiple files with progress-bar in FF3.6+, Safari4+, Chrome and falls back to hidden iframe based upload in other browsers, providing good user experience everywhere.DemoTo upload a file, click on the button below. Drag-and-drop is supported in FF, Chrome. Progress-bar is supported in FF3.6+, Chrome6+, Safari4+
?
More info please refer: valums.com/ajax-upload/
?
这是一个比较好的插件,前端和后端都有实现。前端javascript ajax,后端支持 java 和 php,其他的语言应该也可以支持,但是需要自己实现文件接收。
?
1。 server端 接收文件的 servlet:
?
?2。web.xml 配置:
?
?