Sheezy-Art / sheezy-hub

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

[BUG] Attempting to upload fonts results in Bad Request #565

Closed betalambda closed 2 months ago

betalambda commented 2 months ago

Describe the Issue Attempting to upload any fonts to Sheezy with a Pro+ Subscription results in a Bad Request popup (pictured in Screenshots section)

To Reproduce Prerequisites:

Steps to reproduce the behaviour:

Expected Behaviour The font would successfully upload.

Screenshots image The popup

Device

betalambda commented 2 months ago

To add, the font I am attempting to upload is a .ttf file, which the site says it supports, yet I am getting the following error: image

image proof the site tells me it accepts .ttf files

image image both nunito and coolvectia here are .ttf files

xnyoom commented 2 months ago

Caused by 2024-07-01 which added MIME type validation

boylett commented 2 months ago

Hm. I am able to upload TTF files no problem. Could you attach the font files here, or perhaps via a FileGarden link so that I can inspect them?

xnyoom commented 2 months ago

I can reproduce it with Roboto on Windows 10.

image

Firefox 127.0.2

image

Chrome 126.0.6478.127

image

xnyoom commented 2 months ago

On iOS Safari the upload succeeds because unlike Chrome and Firefox, the MIME is valid.

image

boylett commented 2 months ago

Ah. Seems to be a browser issue - some browsers fail to correctly report the mimetype of font files. Will look into this

boylett commented 2 months ago

Fixed by #97e1643

xnyoom commented 2 months ago

Not fixed. image image

xnyoom commented 2 months ago

Should be fixed now. Let us know if it isn't. https://github.com/Sheezy-Art/sheezy-hub/issues/566#issuecomment-2212069026