Skip to main content

Hello,

 

I’m attempting to send a POST request with the body of type ‘multipart/form-data’.

I can’t seem to set this up correctly within a Workflow getting back a 400 status code everytime - does anyone have experience with this, sending through a Workflow or any other method? 

 

I have seen the use of utl_http but I received some other errors when trying that and was hoping I could avoid going down that route.

 

Appreciate any responses, thanks.

Multipart form data needs the request body to be in a special way. If you’re trying to upload a file etc.., then file content should be in the request body. Have you tried using postman or any other REST tool to make the same request with same headers, same request body? What is the outcome? I feel there’s some issue with the request body you have.


I have successfully made the request in Postman, my workflow REST shape is configured the same as far as I can tell. Debugging the actual call it makes doesn’t really seem possible through Fiddler, for example.

 

How would I go about adding a file to the body of my request through IFS?

 

 

 


It’s not possible to add file as payload to workflow rest task. We can copy a working file upload request payload from postman etc.. and it should work. I’m not sure how useful this is though.
Can you please post the details of your rest task and the postman call details here.


Reply