How to post attachment using form-data

We have a requirement to upload files using HTTP multipart/form-data per RFC 2399. Is there a way to post using apigee?

0 1 919
1 REPLY 1

Yes, Apigee Edge proxies can handle HTTP calls that include multipart-form data, including attachments.

One simple way to use Apigee Edge is to "pass through" the payloads on inbound requests, to the outbound (target) systems. If this is what you want to do, there's nothing special you need to do inside Apigee Edge to make that happen. It will just work.

Another possibility is that you want Apigee Edge to either analyze or manipulate the payload in some way. For example you may wish to use Apigee Edge to extract the attachments and then perform a virus-scan on them. In this case you will need to write some custom logic to do the extraction and decoding. This is not complicated, but there is no out-of-the-box policy that allows you to do it.

Have you tried to build a proxy that handles multipart/form-data ? And what were the results you saw? Did you encounter any problems?