Error to upload SVG (mime_type: image/svg)

Created on 2 May 2019, over 5 years ago
Updated 16 December 2023, 11 months ago

Hello, friends!
I researched all issues around SVG.
I added "svg" extention in config ImageMagick and when
I try to upload SVG in image field i have error:

The specified file sheep pure.svg could not be uploaded.
The image file is invalid or the image type is not allowed. Allowed types: gif, jpe, jpeg, jpg, png, svg

But if SVG would have <?xml version="1.0" encoding="UTF-8"?> in header everything work fine
I figure out that depends of mime_type. Error appear when mime_type is "image/svg" not "image/svg+xml"

How can I fix that be possible to upload all variants of mime types of SVG

For test you may use:
https://dev2.vectors.by
admin
123456
In zip archive 2 vars of SVG

Thanks!

💬 Support request
Status

Closed: outdated

Version

3.0

Component

Miscellaneous

Created by

🇷🇺Russia creozavr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024