cancel
Showing results for 
Search instead for 
Did you mean: 

appgyver - httprequest

SergioG_TX
Active Contributor
0 Kudos

I am using the HTTPRequest object from the marketplace. it works when i am posting some json file or a form... however, i need to post a binary string (I am trying to upload an image to an API) This exercise works from POSTMAN since I am able to select binary as the body type. I also tried typing binary but it errors out.

appgyver only allows "json" or "x-www-form-urlencoded" is there a way for me to use this component but change the body type? i think it is a limitation.

View Entire Topic
akseliv
Product and Topic Expert
Product and Topic Expert
0 Kudos

With the "HTTP Request" flow function you can send json and form data.
You can send files via "File upload". In some cases you need more flexibility to customize the requrests, here I recommend using a JavaScript flow function node to specify the request lofic.
In the JavaScript node you will have "fetch" available by default, see an example here https://forums.appgyver.com/t/how-to-upload-files-to-backendless-step-by-step/6431

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Thanks Akseli 😀

9958e4b6df99431a84a41b015b639ac8 It might be helpful to see this tutorial created by onnobos on uploading an image to an image classification service ... most of the tutorial is layout and UI, but the last third is creating JS to send an image.