How to extract multipart/form-data from POST request and pass it to backend

I want to extract multipart/form-data from POST request and pass it to backend i have three keys and values in form data and have problem to extract these data and pass it to back end please appreciate your support @DChiesa curl -L -X POST "https://apigee002.local:9006/api/v1/document-management/document" ^ -F "document=@\"/C:/Users/a814334/Desktop/Apigee installation/Captfure.pdf\"" ^ -F "documentType=\"ADDRESS\"" ^ -F "overwrite=\"false\""
1 2 385
2 REPLIES 2

 Appreciate your support
@dchiesa1 

Hi

This is a somewhat common question here on the Apigee community.

I suggest you do a search and scan the existing answers.

There are two issues here - extracting the data from the multi-part form.  And then doing something with those data items. 

The issue in Apigee is that most of the logic assumes the payload is text.  JSON, XML, something like that.  But the file content in a multi-part form is not text.  It's a byte array. 

So you need to figure out what to do with that blob of data , how to encode it in a way that makes it consumable for some other party.  

But anyway the search will show you how to do the FIRST part, which is: extract the parts.