I can not upload an SVG file with the image attachment action, because its filter does not match that file extension. The image filter is missing file extensions for many other file formats otherwise whitelisted in the DC rendering code.
I can attach it as a file, and after sending it, it renders correctly in the timeline. Amazingly, even SMIL animation works.
Also for later, this post seems more like a bug report rather than a feature request. But reports should be posted to GitHub, at least that’s how we do it currently.
images sent as file are received as images. send as image is more about opting in to compression than it really is about sending an image.
we could improve this, like show images sent as files differently (like telegram does). also svgs may not be displayed correctly on mobile and may have no background on desktop, so we may want to display them differently.