Skip to content

Conversation

cwillisf
Copy link
Contributor

Resolves

It seems likely that this issue was already filed, maybe years ago, but I couldn't find it. I found several issues suggesting that we do something about our MIME types, just... not this particular issue 😅

Proposed Changes

Add application/x-scratch3-sprite to the list of accepted "file types" for sprite upload.

Reason for Changes

Installing https://aur.archlinux.org/packages/scratch3 (or the -bin version) registers the application/x-scratch3-sprite type with the system (see /usr/share/mime/scratch3.xml), which is kinda cool, but it also causes certain browsers to report sprite3 files with that MIME type during file upload. So, if you have one of those two applications installed, sprite upload fails. That includes the copy of Chromium that I use for integration tests. Fun!

Test Coverage

Tested locally after investigating why integration tests were failing for me but passing on CI...

Installing <https://aur.archlinux.org/packages/scratch3> (or the `-bin`
version) registers the `application/x-scratch3-sprite` type with the
system (see `/usr/share/mime/scratch3.xml`), which is kinda cool, but it
also causes certain browsers to report `sprite3` files with that MIME
type during file upload. So, if you have one of those two applications
installed, sprite upload fails. That includes integration tests. Fun!
@cwillisf cwillisf requested a review from a team as a code owner February 24, 2025 23:35
@cwillisf cwillisf added this pull request to the merge queue Sep 5, 2025
Merged via the queue into develop with commit 0040a51 Sep 5, 2025
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2025
@cwillisf cwillisf deleted the accept-sprite3-mimetype branch September 5, 2025 22:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant