I'm running into an issue while trying to upload an image from Bubble to Cloudinary. The API call returns a 400 Bad Request with the error message:

“Unsupported source URL: Search for Uploaded Files: Last item’s FileURL”

It seems like Bubble is not properly resolving the file URL before sending it to Cloudinary. Instead of passing the actual image URL, it’s sending a query reference like “Search for Uploaded Files: Last item’s FileURL”, which Cloudinary doesn’t recognize as a valid source.

What I’ve Tried So Far:

  1. Directly using “Last item’s FileURL” in the API call—didn’t work.
  2. Manually copying and pasting a working file URL—this worked, meaning Cloudinary accepts Bubble-hosted files.
  3. Realized Bubble’s database might take time to update, so the URL isn’t instantly available when the API call runs.
  4. Potential fix: Tried storing the file URL in a custom state before sending it to Cloudinary, but I’m still testing if this consistently resolves the issue.

Possible Fixes I’m Considering:

  • Making sure the URL is fully stored and accessible as text before sending it.
  • Using a short delay before making the API call to give Bubble time to process the file.
  • Checking if there’s a better way to retrieve the last uploaded file’s URL dynamically.

Has anyone faced a similar issue? Would appreciate any insights on how to make Bubble reliably pass the correct file URL to Cloudinary! :rocket:

Bubble storage uploaded file will not contain https: protocol. You must add it to the url. Also, be sure the file is not private.