Supporting SVG image upload

The list of supported file types for image uploading appears not to contain any vector formats. Can SVG be added?

(I’d like to stop relying on third-party services which may not work for everyone when making posts like http://discourse.haskell.org/t/the-quest-to-completely-eradicate-string-awkwardness/10111/70.)

3 Likes

I will investigate, I suspect they do not support it (or it is turned off by default) as they don’t want to deal with the additional security workload.

4 Likes

Did you complete your investigation? Was it security-related, as you suspected? I think, but I am not certain, that Discourse applies a sanitizer to SVG files when their upload is allowed.

There is a sanitiser, but the extension has to whitelisted by an admin.

I will talk to them.

1 Like

Test:

Logo_of_the_Haskell_programming_language

This seems to work!

5 Likes