FileUploader is not populating mime-type for .zip or .rar files #698

Open
opened 2017-03-23 00:42:26 +00:00 by wipe1-ebuilder · 2 comments
wipe1-ebuilder commented 2017-03-23 00:42:26 +00:00 (Migrated from github.com)

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 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
nicolas824 commented 2017-04-26 08:26:42 +00:00 (Migrated from github.com)

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 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
nicolas824 commented 2017-05-09 12:14:16 +00:00 (Migrated from github.com)

Hi,
Concerning zip files, solution is to use "application/x-zip-compressed" instead of "application/zip"
Rgds,
Nicolas

Hi, Concerning zip files, solution is to use "application/x-zip-compressed" instead of "application/zip" Rgds, Nicolas
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#698