<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.0.0-beta2" />

MultipartFormDataStreamProvider

An IMultipartStreamProvider suited for use with HTML file uploads for writing file content to a FileStream. The stream provider looks at the <b>Content-Disposition</b> header field and determines an output Stream based on the presence of a <b>filename</b> parameter. If a <b>filename</b> parameter is present in the <b>Content-Disposition</b> header field then the body part is written to a FileStream, otherwise it is written to a MemoryStream. This makes it convenient to process MIME Multipart HTML Form data which is a combination of form data and file content.
public NameValueCollection FormData { get; }

Gets a NameValueCollection of form data passed as part of the multipart form data.

public MultipartFormDataStreamProvider(string rootPath)

Initializes a new instance of the MultipartFormDataStreamProvider class.

public MultipartFormDataStreamProvider(string rootPath, int bufferSize)

Initializes a new instance of the MultipartFormDataStreamProvider class.