Sheezy-Art / sheezy-hub

Public repo to discuss issues and feature requests
https://sheezy.art/
13 stars 0 forks source link

[BUG] Flash File (SWF) not uploading in a 400 Bad Request #566

Closed Lynkronized closed 4 months ago

Lynkronized commented 4 months ago

Describe the Issue Heya, been tryin' to upload my flash file (swf), but it keeps getting a "400 Bad Request" every time i upload a flash file, i dunno if it's a bug or something but it wouldn't let me upload flash files, maybe you could probably fix this, maybe???

To Reproduce

  1. Go to 'Upload Artwork'
  2. Click on 'Upload'
  3. Browse a Flash File (SWF) and open a file or drag it on to an Upload icon
  4. Popping up a 400 Bad Request

Expected Behaviour a Flash file (SWF) should upload properly

Screenshots Mqtw3mmSA5 DoiIdsoJ5z

Device

betalambda commented 4 months ago

I think I had a similar issue with fonts in #565

xnyoom commented 4 months ago

Firefox doesn't detect the MIME. Chrome and Safari identify it correctly but fail anyway because application/x-shockwave-flash isn't allowed server-side.

Firefox

image

Chrome

image

Safari

image

boylett commented 4 months ago

Fixed by #97e1643

xnyoom commented 4 months ago

Not fixed. Now filetype is set to swf instead of an empty string but the error is the same. image image

boylett commented 4 months ago

Could you please re-test this following the latest bugfix? It seems none of the systems I have available to me can replicate this issue.

xnyoom commented 4 months ago

It's working now on all browsers I tested (Chrome, Firefox, iOS Safari)! 🎉

boylett commented 4 months ago

Yippee!!