bleenco / ngx-uploader

Angular File Uploader
https://ngx-uploader.jankuri.me
MIT License
756 stars 348 forks source link

allowedContentTypes with doc extensions don't work #491

Open uzumakinaruto123 opened 5 years ago

uzumakinaruto123 commented 5 years ago

this.options = { allowedContentTypes : ["application/pdf", " application/vnd.ms-excel", " .doc", ".docx", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", " application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] };

Only ".pdf" extensions can be selected with above config. If allowedContentTypes is removed and only accept="..." is used then correct file types could be selected.

McastilloA commented 3 years ago

Hello @uzumakinaruto123

see if this works for you

MIME-Typ | Extension -- | -- "application/vnd.ms-excel", | .xls "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", | .xlsx "application/vnd.openxmlformats-officedocument.wordprocessingml.document", | .docx "application/pdf" | .pdf image/png', | .png image/jpeg', | .jpeg image/gif', | .gif image/jpg', | .jpg

I found it here I found it in this issue #399, here you can find more information, here!!