Hi @eric-cheng thanks much for helping.
REST API is actually on our own servers with the simple PHP API codes which takes file attached as in "multipart/form-data".
I could submit the HTTP POST requests using simple CURL command, like:
curl -i -u username:password -X POST -H "Content-Type: multipart/form-data" -F "file=@sample.png" https://api.ourserver.com/upload/
(I can make the exact same HTTP POST request with "multipart/form-data" using the Postman as well.)
And then I could simply receive those attached files from our PHP REST API Servers, using something like:
move_uploaded_file( $_FILES['file']['tmp_name'], '/usr/uploads/'.$_FILES['file']['name'] );
All those files got saved on our Servers.
But then from inside "HTTP" connector in Microsoft Flow, I don't know how to submit POST requests with "multipart/form-data" (or) to mimic such simple CURL command. I know how to put correct Headers there. But I'm confused on how to craft it's "Body" part into "multipart/form-data" equivalent.
Hope you can advise on this. Thank you.