Page MenuHomePhabricator

DataUpload fails with Firefox
Closed, ResolvedPublic

Description

I tried to upload a ".zip" with the DataUpload module, but I get an error message:

"Expects zip, application/octet-stream, application/zip, application/x-zip or application/x-zip-compressed"

I used a single DICOM file, zipped.

Works with Chrome

Revisions and Commits

Event Timeline

PS: Chrome upload works but data doesn't show up in meta

I just tried it with my firefox and it worked... Can you send me the version of your firefox? For very large files I know that it will fail...

schererj added a subscriber: schererj.

Duplicate of T28291

There seems to be a problem with Firefox.
See the task for more details.

I was able to reproduce the error. I will take a look

Checked again, no idea how to fix it. The Browser seems to remove the mime type of the object... so either i remove the file check completely or we find a way of how the browser can be enabled to deal with mime types:

This page prints the mime type of an uploaded file (No file type detected when tested on a setup where the upload is not possible):

https://codepen.io/rikschennink/pen/NzRvbj

And this page shows mime types supported by the browser. (Doesn't show any results if upload is not possible)

https://www.whatismybrowser.com/detect/mime-types-supported

k656s closed this task as Resolved by committing Restricted Diffusion Commit.Apr 8 2021, 12:43 PM
k656s claimed this task.
k656s added a commit: Restricted Diffusion Commit.
m139l added a commit: Restricted Diffusion Commit.Sep 16 2021, 2:52 PM