Can we detect whether a browser supports dropping a file over an <input type="file" />
?
For example, this is possible in Chrome but not in IE8.
Modernizr.draganddrop
is a possibility but is it the right choice? I'm not adding any custom drag/drop event handlers.
Update
To verify Joe's answer here's a jQuery example that should stop the file drop. Verified in Chrome and Firefox.
$yourFileInput.on('drop', function() {
return false; // if Joe's explanation was right, file will not be dropped
});