Some files are not properly recognized by the browser, in my tests at least ".eot" resulted in an empty Blob.type in Chrome. Since this can happen with other types and browsers, we'll ignore this now.
this.wupload._revertDropArea(undefined, $containerID);
for (var $i = 0; $i < event.dataTransfer.files.length; $i++) {
- var $file = event.dataTransfer.files[$i];
- if ($file.type) {
- WCF.System.Event.fireEvent('com.woltlab.wcf.redactor', 'upload_' + $containerID, { file: $file });
- }
+ WCF.System.Event.fireEvent('com.woltlab.wcf.redactor', 'upload_' + $containerID, { file: event.dataTransfer.files[$i] });
}
}
},