danialfarid / ng-file-upload

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

Issue with accept type 'application/json' on IE #2095

Open gialoui opened 5 years ago

gialoui commented 5 years ago

Hi Dan,

As I use your library in my application, I encountered an issue with the accept type: application/json, text/json, text/x-json When I used those types above, the component could not function correctly: browsing files cannot be filtered with type JSON and uploading file will be undefined when I debugged inside upload function

Anyone encountered this kind of problem before can suggest me which type or any workaround i can try to fix this issue.

Thanks, Oliver