简体   繁体   English

Html 文件上传文件支持拖放

[英]Html file upload file with drag and drop support

I would like to create a file-upload field where users can just drag and drop a file onto a certain area in the browser window.我想创建一个文件上传字段,用户可以在其中将文件拖放到浏览器 window 中的某个区域。

Does this work with all modern browsers?这适用于所有现代浏览器吗?

thanks!谢谢!

I found this plugin quite nice:我发现这个插件非常好:

http://valums.com/ajax-upload/ http://valums.com/ajax-upload/

The page has a live demo where you can drag and drop a file that gets uploaded.该页面有一个现场演示,您可以在其中拖放上传的文件。

Unfortunately, it only works in Chrome and Firefox, other browsers have to press a button!不幸的是,它只适用于 Chrome 和 Firefox,其他浏览器必须按一个按钮!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM