Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Unable to display svg in admin thumbnail

default discord avatar
eddiedev2 years ago
2

Hello, I have an image uploaded to s3 with content type 'image/svg+xml'. When downloading the image from s3 directly, I can open the svg correctly. However, when it is set to a cloudfront url, the svg is broken in the admin thumbnail for Media collections. Any ideas? thanks.

  • discord user avatar
    dribbens
    2 years ago

    Is it any svg file or only some?



    I've seen it before with bad files



    I'm also not ruling out a bug somewhere

  • default discord avatar
    eddiedev2 years ago

    Hey Dan! it was actually the url encoding. svg+xml where the + wasn't being encoded properly.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.