Interface IUploadEndpoint
Endpoint that accepts binary uploads.
public interface IUploadEndpoint : IEndpoint
- Inherited Members
- Extension Methods
Methods
UploadFromAsync(Stream, string?, string?, CancellationToken)
Uploads data to the endpoint from a stream.
Task UploadFromAsync(Stream stream, string? fileName = null, string? mimeType = null, CancellationToken cancellationToken = default)
Parameters
streamStreamThe stream to read the upload data from.
fileNamestringThe name of the uploaded file.
mimeTypestringThe MIME type of the data to upload.
cancellationTokenCancellationTokenUsed to cancel the request.
Returns
Exceptions
- InvalidDataException
- AuthenticationException
- UnauthorizedAccessException
- KeyNotFoundException
- HttpRequestException
Other non-success status code.