27
Views
1
Comments
[Multipart/form-data] How to set Path for binary data?
Question
multipart-form-data
Service icon
Forge asset by Kilian Hekhuis

Hi,

I have one API that I consume, and in that API, I have to send binary data and a path to store that file.

I used this forge component because the API's content type is "multipart/form-data".

but for the "PostChildren" API, I want to set the file data and relative Path as well.

Can anyone please tell me how I can set form-data(relativePath) in the Body in  Service Studio while consuming this API?




2019-01-07 16-04-16
Siya
 
MVP

Multipart/form-data is natively supported in Service Studio. Please refer to the documentation here.

Regarding "path to store that file" ,  not sure one could answer that as that is internal to your API. You may need to refer the documentation of the API to get clarity on the same.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.