<PackageReference Include="Refit" Version="16.3.0" />

Refit.MultipartItem

public abstract class MultipartItem
Base type for multipart form items that carry a file name and optional content metadata.
public string ContentType { get; }

Gets the type of the content.

public string FileName { get; }

Gets the name of the file.

public string Name { get; }

Gets the name.

protected MultipartItem(string fileName, string contentType)

Initializes a new instance of the MultipartItem class.

protected MultipartItem(string fileName, string contentType, string name)

Initializes a new instance of the MultipartItem class.

protected abstract HttpContent CreateContent()

Creates the underlying HTTP content for this item.

Converts the item to HTTP content.