Théo Lubert
Théo Lubert
The media is saved with `mimeType "image/svg+xml"`, but is served as `content-type: application/xml` (`/api/media/file/.svg`)
This is due to the package `file-type` not supporting SVGs (cf. https://www.npmjs.com/package/file-type) > This package is for detecting binary-based file formats, not text-based formats like .txt, .csv, .svg, etc. It...
@linobino1 Nice fix. I'm guessing that it makes SVG work by breaking other XML files though. Uploads are mostly used for images, so it fixes the main use case, but...