<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.3-beta1" />

MultipartFileStreamProvider

Represents an IMultipartStreamProvider suited for writing each MIME body parts of the MIME multipart message to a file using a FileStream.
protected int BufferSize { get; }

Gets or sets the number of bytes buffered for writes to the file.

Gets or sets the multipart file data.

protected string RootPath { get; }

Gets or sets the root path where the content of MIME multipart body parts are written to.

public MultipartFileStreamProvider(string rootPath)

Initializes a new instance of the MultipartFileStreamProvider class.

public MultipartFileStreamProvider(string rootPath, int bufferSize)

Initializes a new instance of the MultipartFileStreamProvider class.

public virtual string GetLocalFileName(HttpContentHeaders headers)

Gets the name of the local file which will be combined with the root path to create an absolute file name where the contents of the current MIME body part will be stored.