SVG Upload not working

I was informed by one of my colleagues that svg upload doesn’t work. However, linking to an external svg file works. I tested it on my production system after upgrading to the latest version as well as here.

I found a bugreport dated 1 1/2 years ago, pretty much the same except the error message is different now.

Steps to reproduce:

Error message:

Sorry, but we couldn’t determine the size of the image. Maybe your image is corrupted?

3 Likes

The library we use to determine the size of an image didn’t support svg file with a doctype. It does now :wink:

https://github.com/discourse/fastimage/commit/48b0f5304c030fd0a33976f4428a8fb89ee09377

6 Likes