如何将文件附件拖放到浏览器中? [英] How to drag and drop file attachment into the browser?
问题描述
似乎Gmail刚刚启动此功能,并且不需要您安装任何插件等。
它适用于Firefox和Chrome,但不适用于IE
使用 dropzonejs 。 / p>
它是一个支持文件丢失的轻量级库,只需将 dropzone
类添加到表单元素中即可。它使用HTML5处理文件,甚至显示放入其中的图像的预览。在不兼容的浏览器中,它可以归结为一个简单的文件上传表单。另外:它看起来不错。
看看吧!
免责声明:我写了这个图书馆。
It seems Gmail is just starting this feature, and it doesn't require you to install any plugin etc.
It works in both Firefox and Chrome but not IE.
Use dropzonejs.
It's a lightweight library supporting file drops by simply adding the dropzone
class to form elements. It handles the files with HTML5 and even shows previews of images dropped into it. In incompatible browsers it falls back to a simple file upload form. Also: it looks good.
Have a look at it!
Disclaimer: I wrote this library.
这篇关于如何将文件附件拖放到浏览器中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!