currently i can only upload raster images
actual:
when i try to upload SVG images
then the upload form throws the error
"Image content type is invalid"
why:
SVG images are better for re-using or printing
examples:
github.com/milahu/memes-svg
6,934 total conversations in 575 threads
Last posted
Jan 16, 2026 at 04:26AM EST.
Added
Jan 15, 2026 at 04:23AM EST
3 posts
from
2 users
currently i can only upload raster images
actual:
when i try to upload SVG images
then the upload form throws the error
"Image content type is invalid"
why:
SVG images are better for re-using or printing
examples:
github.com/milahu/memes-svg
The site's code would have no idea how to handle SVGs currently. Also, the site's code hasn't even been updated to handle WebP images, which is kinda bothersome as a lot of sites have switched to using them.
adding SVG support is trivial, with one caveat:
SVG files can contain javascript, which allows SVG XSS attacks
so the uploader should reject all SVG files with javascript
Already a memeber? | Don't have an account? |