Upload List of Images through Data API

I’m trying to upload images generated and saved in my Google Drive through the data API into my bubble database. For PDFs (files) this works through base64 encoding.

For images it should work through a direct link (
https://drive.google.com/uc?export=download&id=XXX). The link is sent into the database, gets accepted, but cannot be previewed.

I need it to be of data type Image in order to view it in a carousel.

How can I make this work?

If you want to upload a file (to Bubble storage), you need to encode it in base64 and set the json as:

{
 "filename": "String"
 "contents": "Base64-encoded binary data"
 "private": Boolean
 "attach_to": "String"
}

An option if you cannot do that, is to use Backend WF instead. Send the URL and in the field, use url’saved to Bubble storage (I think they renamed it two weeks ago, before it was Saved to s3)

awesome, thanks very much. Will have a look into the backend workflow

1 Like

@Jici this saves them in the database as a File instead of an Image, right?

No. you can choose if this is a file or image type in Backend WF and save it to image field. The option 's saved to Bubble should be available for both type