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
stream
StreamThe stream to read the upload data from.
fileName
stringThe name of the uploaded file.
mimeType
stringThe MIME type of the data to upload.
cancellationToken
CancellationTokenUsed to cancel the request.
Returns
Exceptions
- InvalidDataException
- AuthenticationException
- UnauthorizedAccessException
- KeyNotFoundException
- HttpRequestException
Other non-success status code.