Forum Discussion
4 Replies
- asheeshNew Contributor
Thanks a lot, Supratim,
As per the service provider, Put request should be a multi-part Form data and there are certain property about the image also needs to be sent, we are able to do it in Postman where all the Properties and Image are part of the Body, but we are not sure how to pass the same thing in Execute PUT Snap.
We tried to test the Put snap without attachment as urlencoded, where we have created and url with all the properties as part of url, it was able pass the authentication and error was missing file.
but if we add urlencoded and the upload file both at the same time we are getting Error 500.
So we are not able to use properties and attachment with multi-form data.
Please suggest,
Here is the Attachment from POSTMAN
- bojanvelevskiValued Contributor
Hi @asheesh,
You can also use File Reader to read the image, and pass the content to the REST Put snap in the entity field.
Regards,
Bojan - sanjaynayakNew Contributor III
Any one use rest put , content type has some issues , not generating boundary in run time
multipart/form-data; boundary=.
Even if hard code the boundary value in HTTP entity and as well as content type.Like post man is generating