<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="6.0.0" />

MultipartFormDataRemoteStreamProvider

A MultipartStreamProvider implementation suited for use with HTML file uploads for writing file content to a remote storage Stream. The stream provider looks at the Content-Disposition header field and determines an output remote Stream based on the presence of a filename parameter. If a filename parameter is present in the Content-Disposition header field, then the body part is written to a remote Stream provided by GetRemoteStream. Otherwise it is written to a MemoryStream.

Gets a collection of file data passed as part of the multipart form data.

public NameValueCollection FormData { get; }

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

Initializes a new instance of the MultipartFormDataRemoteStreamProvider class.

Provides a RemoteStreamInfo for GetStream. Override this method to provide a remote stream to which the data should be written.