Drag and drop into file input doesn't work in IE11

我的未来我决定 提交于 2019-12-08 18:16:56

问题


Can anybody answer me: why drag and drop field works fine in chrome and firefox but doesn't work in IE11? IE11 just open the files when I drag and drop them from the desktop.


IE version: 11.545.10586.0


HTML:

<input type="file" />

Example: https://jsfiddle.net/3hc2grcp/.


回答1:


Internet explorer doesn't support drag and drop API of html5 . so you need some kind of library extension. you must use javascript library such as Dropzone.js. Dropzone.js support drag and drop for files(multiple files also) in even Internet explorer 10+ and 11.

please visit the following URL here .



来源:https://stackoverflow.com/questions/39079542/drag-and-drop-into-file-input-doesnt-work-in-ie11

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!