Extend upload filter with all rendered image formats

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.

Related:

The code is here

As with Mov file is not displayed in the media library · Issue #4663 · deltachat/deltachat-desktop · GitHub, we probably shouldn’t try to maintain a full list of formats in our codebase.

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.

2 Likes

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.

1 Like