Try this
mimes:jpeg,png,svg,html
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
So I've got an image upload endpoint, and it works with a majority of image formats I can throw at it EXCEPT SVG.
For whatever reason, it appears to just not work.
I've tried both rules;
mimetypes:image/jpeg,image/png,image/svg+xml
mimes:jpeg,png,svg
But neither work for SVG. It constantly gives the error;
"The file must be a file of type: image/jpeg, image/png, image/svg+xml."
But if you look at the content-type of my request, you can see it is svg. https://i.imgur.com/dBK3yPN.png
So I'm not really sure what's going on here?
Please or to participate in this conversation.