danialfarid/angular-file-upload — pull request #339 by alexeygolev (2014-09-25 11:41:27+00:00)
Title: stopPropagation() for ng-file-drop to work when $document drop is disabled

I use this to prevent browser from opening file/folder preview when dropped (and navigating you away from the page)
``` javascript
$document.bind('dragenter', function (e) {
e.stopPropagation();
e.preventDefault();
var dt = e.dataTransfer;
dt.effectAllowed = dt.dropEffect = 'none';
});
$document.bind('dragover', function (e) {
e.stopPropagation();
e.preventDefault();
var dt = e.dataTransfer;
dt.effectAllowed = dt.dropEffect = 'none';
});
```
however it prevents ng-file-drop from working as well. Unless you add stopPropagation on the 'dragover' event.