I have a following case I cannot solve.
I have created a backend workflow that receives an activity and a file.
I have other API calls for workflows work, but what doesn’t work is sending a file.
Are you calling your endpoint from Postman? I’m pretty sure files should be sent as URLs (not certain of this and can’t test right now). Show us your API call if you want help debugging.
Well it’s not a URL so I guess here is the problem. I was trying to pass an actual file.
I will give it to the second part of the team to try to send an URL there.
Yup - I tested both things.
So - what is the way I should use to upload a file via backend workfow to bubble?
Do I need a plugin? As the effect I want to have is to have this file in bubble, not just the link to the file.
That is an error if I am seding a text and expecting a file.
Cause I understand I have just 2 parameters and 4 options
Send : text or file
Receive: text or file
But I need to save it in the Database as a file (in the end), to send it later some other place.
@Jici in which place I can convert it, as when I receive a text/file I do not have this option (in the backend workflow - make changes to a thing action).
The answer is here. Your list of files key is called PODs but your Bubble endpoint is looking for a key called Files. Rename your PODs parameter to Files or vice versa.
You’re also sending the API call as form-data when it should be JSON. Change the body to raw → JSON and write out your Activity and PODs parameters there.