Skip to main content
← Data, API & Backend
Data, API & Backend April 13, 2022 · 8 replies

Image upload to Xano

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

I'm struggling to set up the API on Bravo to upload an image from an app.
All other POST requests work pretty well but i get a 500 error when working with image uploads. I'm using Xano as a backend.

Does anyone know if this binding recently changed or something i need to take note of?

8 replies

Josh April 19, 2022

Hi Javier,
Thanks for your response.
P precisely followed this tutorial but wouldn't work.
I want to redo it from scratch maybe I missed something.

Josh April 20, 2022

Hi ,
I did get in touch with Xano and they confirmed the image download process was recently updated meaning the file post request from Bravo is also impacted. 
Would you please liaise with Xano to get the tutorial above updated as I believe a lot of people rely on it.

I still haven't figured out how to upload using the current file upload option as opposed to using an image_url as outlined in the tutorial. 
Thanks

Josh April 20, 2022

Sorry, meant the image upload process has since been updated

Alex May 2, 2022

Any updates here? We're having the same issue

Josh May 2, 2022

Hi ,
Yes, I managed to go around it.
In Xano inputs don't use the "image_url" as they now support direct image upload. Under Xano Inputs use  'Storage>File Resource'' (see image below, you can choose your own name) then in the Function's Stack use the image metadata under content upload to upload the image. (I believe the documentation in Xano is now updated).

You will have to add the additional line in the JSON Body to be able upload from Bravo. make sure you use the same name as it appears in Xano content inputs. e.g.  "content": "${content}"
I'm however struggling with uploading multiple images

Diego Iglesias Bravo team October 27, 2023

We've created a video that covers specifically this case, hope it helps:

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord