Perf. calibration zip: "Upload failed: Error: Only mimetype application/zip supported"

Steps to Reproduce:
Go to Perf. calibration → Options
Upload your own in a zip file (.wav + audacity txt file)

Expected Results:
.zip file uploads successfully.

Actual Results:
I get error: Upload failed: Error: Only mimetype application/zip supported
Same with all projects, and with any .zip file I have tried.

Reproducibility:

  • [X] Always
  • [ ] Sometimes
  • [ ] Rarely

Hi @tuoman - I have been unable to reproduce your error. So I have a couple questions.

How are you creating your .zip archive? Are you on Windows? MacOS? Linux?

HI @brianmcfadden, thanks for looking into this.
I still get the same error.
I use Windows. I have tried 7zip (default settings) and windows’ own “Send to > compressed (zip) folder”
I have tried Edge, Chrome and Firefox browsers.

image

Steps to make the file:

  1. record 10 seconds of audio in Audacity
  2. Add 1 label (select some area, ctrl+B)
  3. Export Audio (wav file, default settings 44k, mono, signed 16-bit pcm)
  4. Export Labels (txt)
  5. zip those 2 files

When I was digging into this, some info I saw said that Windows machines will often set the MIME type as application/x-zip-compressed instead of application/zip.

Are you comfortable with browser developer tools? Using Chrome I inspected the network traffic when I uploaded my ZIP archive in the performance calibration modal and confirmed my content type was set to application/zip. I went inspect > network > file upload request > payload > view source.

Let’s see what your content type is set to, and I will create an issue with the team to add the application/x-zip-compressed MIME type if that’s the issue.

Your guess was correct. My type is indeed application/x-zip-compressed

add the application/x-zip-compressed MIME type

Yes I recommend that. I haven’t found any solution to this issue, as I don’t have linux machine.

Hi, thanks for helping us debug here. We’ll get a fix in for this asap.

edit: A fix has been merged in; expect this to be released Tuesday or Wednesday the latest.

2 Likes

Thanks for addressing, @janjongboom!

@tuoman - please let us know if you have any further difficulties.

@brianmcfadden
Hello, I tried the fix. No more “MIME type” error, but I get another error:

/bin/sh: 1: unzip: not found
Error extracting and validating audio: Command failed: unzip /data/ei-user-cdn/user/397845/project/802509/app-testing/29d36779708faef0c55a79bb06ffc869ab7fcee3f6b1046600e324a42c82c030.zip -d /home/uploads/29d36779708faef0c55a79bb06ffc869ab7fcee3f6b1046600e324a42c82c030
/bin/sh: 1: unzip: not found
Application exited with code 1

Dang. Sorry to hear that this hasn’t been going too smoothly for you! I have created an issue for the engineering team to look at.