Uploading Public Image in Backend Workflow

Hi there,

I’m using DALL-E on a backend workflow to generate an image. The DALL-E API just returns the URL of the image it creates, but it is short-lived and I need to store it in Bubble to reference.

It does not need to be a private image. It should be publicly accessible.

I cannot seem to find any examples or documentation on how one would upload a public image to Bubble using just the URL fully on the backend.

How would I go about doing this?

Thank you.

You need to use :saved to Bubble storage (was :saved to S3 before) from the file url sent by DALL-E

Thanks @Jici , it seems that this only wrks with these Data Types (File and Image):

DALL-E is returning a text data type containing a URL, so the :save to Bubble Storage option is not available.

You need to set the type (when you detect data for example, click on modify type to edit it) as file or image. An url is always a string, so Bubble by default will set this to text. But you can change that. If you use API Connector, you can do the same thing by modifying the response type to image or file instead of text

1 Like

Thanks @Jici that worked. I changed the mapping from text to image on the return from the API Plug-in test call, and was able to access that function.

1 Like