Replies

Jul 3, 2019 6 years ago Official
Bug
User Avatar
Segfault

Thank you for your report! We've deployed a fix. Please give those images another try at your earliest convenience and let us know if it's working now :)

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Jul 5, 2019 6 years ago Official
Bug
User Avatar
Segfault

Sure! As part of our image validation process, we check to make sure the file's MIME type is indeed an image (and not some other type of file, like a video or text document, or something more malicious.)

The MIME type should specify that it's an image. You can see what this looks like on this page that lists valid MIME types (offsite link) - search for "image" on the page to get to the right part of the page. There's a bunch of valid types like "image/png" and "image/jpg".

For some reason, some of the Toyhouse image files don't have the "image" part (so like, they simply specify "png" instead of "image/png"), so I just needed to add that to the MIME types we allow :)

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Jul 5, 2019 6 years ago Official
Bug
User Avatar
Segfault

I don't use Toyhouse myself, so you're probably in a better position to let them know than I am. I think it's a great idea to let them know, because it's one of those things that won't cause problems most of the time, but can be really subtle when it does, so it's just good to be aware of. If you're curious, "png" is technically an invalid MIME type because"a MIME type always has both a type and a subtype, never just one or the other." - MDN (offsite)

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Please log in to reply to this topic.