FileUploader is not populating mime-type for .zip or .rar files #698
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?
Hi All,
I'm new to FileUploader and was making progress in uploading files with many different file types. Unfortunately I see that when I upload a zip/rar file the FileItem.file.type doesn't populate any mime type and stay as empty. I assume that this has to be a bug in FileUploader module.
Any fix or a workaround is appreciated.
Regards,
Wimal
Hi Wimal
Did you found a solution ? I have same issue
This line doesn't work :
new FileUploader({ url: URL,allowedMimeType: ['application/zip']});while this one works to upload xls and xlsx files :
new FileUploader({ url: URL,allowedMimeType: ['application/vnd.ms-excel','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'] });version : ng2-file-upload@1.2.1
Rgds,
Nicolas
Hi,
Concerning zip files, solution is to use "application/x-zip-compressed" instead of "application/zip"
Rgds,
Nicolas