Upload Media File thru thirdparty API

I am able to upload my chosen file using postman. How do I replicate this same code below(which has been derived from postman) in appgyver?

var myHeaders = new Headers();

myHeaders.append(“UName”, “admin123”);

var formdata = new FormData();

formdata.append(“file”, fileInput.files[0], “/C:/Users/coolbeans/Downloads/6ip6pxo4T.gif”);

var requestOptions = {

method: ‘POST’,

headers: myHeaders,

body: formdata,

redirect: ‘follow’


fetch(“https://???.com/upload.ashx?name=51030241.jpg&title=RRR&Description=descrpt&Tags=tag1,tag2,tag3&private=1&Ratings=0&Type=2&UName=admin123&Cats=sad”, requestOptions)

.then(response => response.text())

.then(result => console.log(result))

.catch(error => console.log(‘error’, error));

You can use HTTP Request flow function

Yes I’ve tried that but I’m not sure how to set up the “Request Body” for the HTTP Request flow, in order to send the actual picked file. Is there anyway to show me a logic flow to achieve this?

Can anyone else help me please?

There was an issue with upload files that was recently solved, that may help solving this issue, hopefully you’ve been able to get forward with this now.