handle custom file extension allowedMimeType #1075

Open
opened 2019-02-18 15:24:03 +00:00 by saman · 1 comment
saman commented 2019-02-18 15:24:03 +00:00 (Migrated from github.com)

Hello,
I wanna upload a custom file with arff extension. The mime type is text/plain. I have already these configs, but the package is not accepting the file.

allowedMimeType: ['text/plain', 'application/zip', 'application/octet-stream', 'application/x-zip-compressed', 'multipart/x-zip']

P.S: If I remove allowedMimeType totally, it's working fine. But I have to limit mime types.

Thanks.

Hello, I wanna upload a custom file with `arff` extension. The mime type is `text/plain`. I have already these configs, but the package is not accepting the file. ```js allowedMimeType: ['text/plain', 'application/zip', 'application/octet-stream', 'application/x-zip-compressed', 'multipart/x-zip'] ``` P.S: If I remove `allowedMimeType` totally, it's working fine. But I have to limit mime types. Thanks.
saman commented 2019-11-05 12:08:27 +00:00 (Migrated from github.com)

Any update on this?

Any update on this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1075