Click or drag to resize

ChunkedUploadSourceStashNextChunkAsync(Int32, CancellationToken) Method

This is preliminary documentation and is subject to change.

Stash the next chunk in the stream.

Namespace: WikiClientLibrary.Files
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public Task<UploadResult> StashNextChunkAsync(
	int chunkSize,
	CancellationToken cancellationToken
)

Parameters

chunkSize  Int32
The maximum size of the next chunk.
cancellationToken  CancellationToken
The token used to cancel the operation.

Return Value

TaskUploadResult
true if a chunk has been uploaded; false if all the chunks has already been uploaded.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionchunkSize is not between MinUploadChunkSize and MaxUploadSize.
InvalidOperationExceptionA chunk is currently uploading - or - TotalSize is zero.
OperationFailedException General operation failure - or - specified as follows
ErrorCodeDescription
illegal-filenameThe filename is not allowed.
stashfailedStash failure. Can be caused by file verification failure. (e.g. Extension of the file name does not match the file content.)
See Also