When I upload the image, I got an error 'Only files with mime type image/svg+xml are allowed. Mime type deletected text/html'. Let me know how to fix this
When I upload the image, I got an error 'Only files with mime type image/svg+xml are allowed. Mime type deletected text/html'. Let me know how to fix this
Comments
Comment #2
cilefen commentedI do not believe you intentionally assigned yourself. Perhaps this article may help.
Comment #3
jwilson3@Vijeth if you're optimizing your SVGs with svgo or other web-based tools, they often strips the <?xml version="1.0" encoding="UTF-8"?> from the first line, which sometimes is used to detect the mime type. Maybe try the upload with that line, and confirm if it works or not.
I agree that this is not an optimal solution to have to add back this xml code to all images before uploading.
Comment #4
jwilson3Comment #5
jwilson3Comment #11
cilefen commentedI am closing this support request because there have been no recent comments.
The Drupal Core issue queue is not the ideal place for support requests. Consider other sources of support.