Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted WOFF2 file upon upload #1842

Open
addedlovely opened this issue Nov 1, 2024 · 1 comment
Open

Corrupted WOFF2 file upon upload #1842

addedlovely opened this issue Nov 1, 2024 · 1 comment

Comments

@addedlovely
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants