Uploading SVGs via Upload API

Hi!

I’m writing a script that uploads our iconography into builder using the Builder Upload API. The icons successfully loads into Builder, however I run into an issue.

Upload a successful upload into builder using the api, the icons don’t show a preview. They show the file name, like you see with the Zipper Fly Light.svg on the first item in the screenshot below.

I tried to upload via the api for a PNG and it’s successful as well, but now you get the preview of the icon.

And then lastly I uploaded the svg manually and you get the successful preview, like I was hoping.

It looks like files that are associated with image content types are put into a different directory than other files.

I verified, the content type I’m sending in my requests is image/svg+xml and I even attempted to send it as image/png with no success.

I attached some screenshots to show what url I’m hitting + the response I’m getting back. Any suggestions on what could be wrong?

Hello @basicallysteve,

Welcome to the Builder.io forum!

We’ve successfully reproduced the issue you reported and are currently investigating it internally to determine the best next steps.

We’ll keep you updated on our progress and let you know as soon as we have any updates.

Thank you,

Thank you!

I saw a similar post here back and someone else reported the same or a similar issue.

According to the discussion point, it looks like the Engineering Team was aware of this issue as of August 23rd and planned on fixing it in a release.

Is there any idea of when that timeline is? I’m trying to work with our marketing team on this and if it’s something that’s been known since August, I just want to get an idea of how close that release may be, otherwise I’ll have to work on a different solution with them.

Hello @basicallysteve,

Thanks for your patience. We are currently in a code freeze until the end of the first week of January. You can expect the fix to be deployed shortly thereafter. Rest assured, I will keep you updated and let you know as soon as the fix is live.

Thanks again,

Hi @basicallysteve,

I wanted to let you know that the issue you reported with uploading SVG images via the upload API has been successfully fixed.

Thanks for bringing this to our attention!

Best regards,

Awesome! Thank you so much Manish getting back to me!