Not working correctly allowedMimeType: ['text/plain', 'text/csv'] #850
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I only want users to be able to upload .csv files.
I first implemented 'text/csv' which on a max/osx worked fine, but on windows chrome, it will not allow users to upload .csv files. I assume its because it docent recognise css. I tried a work around of allowing .txt files but this on windows chrome will still only allow txt extensions.
How can I get windows chrome to accept csv files only
when I provide mime-type for pdf it is uploading but when I provide for doc and docx documents are not getting uploaded. Is there a way around to tackle this problem. (Till this issue is fixed).
public allowedMimeType = [''application/pdf'']; uploader: FileUploader = new FileUploader({ allowedFileType: this.allowedMimeType, isHTML5: true });this code is working perfectly fine, but when I provide mime type for doc and docx it's not working as it supposed to be.
mime-type provided for doc and docx file.I am facing the same problem. I believe it has something to do with the file type that microsoft office opposes on .csv files.
After checking the file details that I attempted to upload I noticed that the type was of
application/vnd.ms-excelinstead oftext/csv:My configuration for csv files only, in Mac/Windows, works fine in both @spwizard
thanks to @MrfksIv for his explain