Upload image to bubble storage from url

Hi

Does anyone know how to upload images generated by an external API (apy hub) to Bubble’s file storage?
I have the following API Connector settings for image generation.

Use as: Action
Data Type: JSON
Method: POST
endpoint: https://api.apyhub.com/generate/image-thumbnail/url
header: key: content-type, value: multipart/form-data
parameter: video_url (default: https://assets.apyhub.com/samples/sample.mp4)

I have tried to combine a plugin that generates PNG images from URLs and uploads them in a custom state, but that failed.

Here is the flow I am assuming
Upload video with Bubble’s FileUploader.
Generate thumbnail images automatically from the video using an external API.
Obtain the URL of the generated image and save it to Bubble’s file storage.

Hi @corp. I think you can use the apy endpoint that returns an image instead and can use that image to store in Bubble. See the demo below:
brave_2O9Q6iXdG5

In this example, I use the uploaded video URL and return an image instead. See the API settings below:

Then, I call the API and get the result and update an image field in Bubble:

image

See the editor here if you want but probably you won’t be able to do more thumbnail because it is just 5 per day free :slight_smile: : Tests for Forum 13 | Bubble Editor

2 Likes

Hi Mr.hergin
Thank you very much!
I will verify it right away!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.