Question

6
Replies
7476
Views
Close popover
Samarjeet Mohanty (SamarjeetM8582)
TCS

TCS
IN
SamarjeetM8582 Member since 2015 4 posts
TCS
Posted: February 13, 2017
Last activity: May 17, 2017
Closed
Solved

How to pass a file as form data in connect rest post method body

There is a API I am connecting through connect rest post method. I require to browse and select a file from the local machine. This file requires to be passed in the body of the request while calling the connect rest post method.

While trying this out through any rest client (eg. postman) i see in body mentioned as form-data. This accepts a key and file as input. I am able to call the API and perform the functionality.

How can I do the same through pega.

Enterprise Application Development Dev/Designer Studio Data Integration
Moderation Team has archived post