4
Vote

AjaxFileUpload: Drag and Drop is not working on IE10 for Windows 7

description

It seems that Drag and Drop function of the AjaxFileUpload control is not working on IE10 (tested in IE10 for Windows 7).

For example the official sample (just try it yourself : http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx) is working well in Chrome and Firefox, but not in IE10.

comments

dmenoni wrote Feb 28, 2013 at 1:41 PM

A possible fix:
IE10 needs to bind preventDefault() to the dragenter event.

By adding:
$('div[id$="Html5DropZone"').bind("dragenter", function (e) { e.preventDefault(); });
I'm able to get the drop functionality working.

I'll be adding (in my local modified toolkit) to AjaxFileUpload.pre.js:
_html5OnDragEnter: function (event) {
    event.stopPropagation();
    event.preventDefault();
},

lwsouza wrote Jun 19, 2013 at 1:10 AM

Hello !

I´m having the same problem: the drag and drop is not working.
Does anyone found a solution ?