WCF Multipart Upload Samples

These samples show various aspects of using MIME Multipart for upload of content to WCF Web API services.

Type Service Sample Upload Data Form

This sample WCF service reads the contents of an HTML file upload and deserializes the contents into a local object which is then returned in the response.

File Service Sample Upload Data Form

This sample WCF service reads the contents of a traditional HTML file upload and writes one or more body parts to a local file.

HTML5 Multiple File Service Sample Upload Data Form

This sample WCF service reads the contents of an HTML5 file upload supporting multiple files to be included in the same form submission and writes one or more body parts to a local file.

DotNetZip File Service Sample Upload Data Form

This sample WCF service reads the contents of an HTML file upload and writes one or more body parts to a local file while decompressing the contents on the fly using a deflate stream from the DotNetZip library.

Split File Service Sample Upload Data Form

This sample WCF service reads the contents of multiple individual HTML file upload requests and returns a list of all of then when done. This illustrates how to do upload of spanned archives.