[SOLVED] SVGs are not considered images

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

When uploading an SVG as an asset when the “image” validation is selected, saving fails an the interface tells me it’s not an image (even if the image is shown as a thumbnail).

Expected behavior

SVGs should be considered as images.

Minimal reproduction of the problem

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [x] Cloud version

Version: Don’t really know?

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:
I believe the issue might lie in the fact that SVG mimetypes don’t start with image but rather type (type/svg).

It dependes on the definition of an image. Right now an image is something that can be processes, like resized and so on. I would keep it like that. I think you can use allowed mime types, isn’t it?