I’ve got a little app running on my desktop connecting to a test API endpoint using POST.
So far I’ve gotten text from the desktop to show up in Bubble’s database using a format like this:
first=some thing&second=another thing
I’ve also gotten an image into Bubble’s database using a format like this:
first=some thing&second=another thing&third=http://some.place.com/with/an/image.jpg
What I haven’t been able to do is get an image from the desktop into Bubble’s database.
I tried following this little blurb from the reference in two ways and it’s doing everything except uploading the image.
first=some thing&second=another thing&third={"private":false,"filename":"some_filename.jpg","content":"a string of base64 encoded image data"}
first=some thing&second=another thing&private=false&filename=filename.jpg&content=base 64 encoded image data
I wouldn’t really expect that second one to work, but figured I’d give it a try.
Bubble is returning the message I told it to in the API workflow and NOT returning any errors. The two parameters with text in them always show up in the database.