Question

6
Replies
6956
Views
SamarjeetM8582 Member since 2015 4 posts
TCS
Posted: 3 years ago
Last activity: 3 years 5 months ago
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.

Low-Code App Development Dev/Designer Studio Data Integration
Moderation Team has archived post
Share this page LinkedIn