Recieve file and save in database through Backend WF Api

Hi,

Cannot solve this “problem”. A made an BackEnd API (POST) with several fields. Two fields are type ‘file’. When you call this API from another bubble app (testing) all the fields are recieved and stored in the database. But not the files. The only way I get this worked was change the call in an GET, but that’s not save for my use.

Read some solutions about Base64, etc but none of them helped me.

Maybe someone can help me out. Thanks in advance.




Can you share how you send the file to backend wf?

Yes of-course,

Have an other app where I made a test API.


This wont work because Bubble expect the file to be an object like that

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

OR you submit a url of the file (and you can use saved to Bubble storage function)

OK,

URL is clear.

But file not. Understand your quote, but how can I fix this in my backend WF?

Did you change API connector to send a string instead of file (un check send file checkbox) ? This way you can send the url