danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.6k forks source link

Dropping .json or .txt fails. (loads in the browser instead) #2080

Open bartmelton opened 6 years ago

bartmelton commented 6 years ago

If you drop a .json or .txt the handler doesn't kick in. Instead, the file is loaded into the browser. At least in chrome. I would guess, but have not tried, that it would happen to other file types typical for the browser (html, js, css). Dunno if there is a way to override the browser handling it.