Forward an http request with uploaded multipart/form-data directly to another server

Hey guys,

Just wondering if anybody has any ideas as to how it would be possible from within an http handler to send along the current request containing multipart/form-data uploaded from an upload form, directly to another server.

Just for the record. I’ve already written one solution which is to create a new multipart writer, iterate through all of the multipart file headers from the current request, open each file, writing them all to the multipart writer, which I then send off in a new http post request.

I just wonder if there’s an easier way…

Any ideas would be appreciated. Thanks!

All that was needed in the end was a simple reverse proxy.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.