Shopify / liquid

Liquid markup language. Safe, customer facing template language for flexible web apps.
https://shopify.github.io/liquid/
MIT License
11.13k stars 1.39k forks source link

Corrupted WOFF2 file upon upload #1842

Open addedlovely opened 2 weeks ago

addedlovely commented 2 weeks ago

Sorry to post this here, but I would like to file a bug in the admin area of Shopify - the issue is ignored in the community support forum and support can't or won't file a bug report on my behalf.

When uploading a WOFF2 font file to the 'assets' folder of a theme the file is corrupted. In my case the file size changes from 21KB to 39KB when served via asset_url

The browser console logs the following errors and the font fails to load.

Failed to decode downloaded font
OTS parsing error: Failed to convert WOFF 2.0 font to SFNT

When uploading the file to 'Content' > 'Files' and loading the file via file_url in the CSS, the font load correctly. ( So it's not a corrupt font file before uploading ).

Other customers experiencing the same. https://community.shopify.com/c/technical-q-a/has-anyone-else-had-issues-with-corrupted-woff-or-woff2-files/m-p/1732103

Please advise on the correct channel to report bugs - as support is always a brick wall.

taksh108 commented 4 days ago

I have seen this behavior too. Upload to files section or using the CLI/Github connection worked as expected. Only see it while uploading it to theme directly