Click or drag to resize

IResumableUploadGetBytesUploadedAsync Method

IT Hit WebDAV Classes Reference
Amount of bytes successfully uploaded to server.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax
Task<long> GetBytesUploadedAsync()

Return Value

Type: TaskInt64
Number of bytes uploaded to server or -1 if server did not provide info about how much bytes uploaded.
Exceptions
ExceptionCondition
NotImplementedExceptionIs thrown if server doesn't support resumable upload.
NotFoundExceptionThis resource doesn't exist on the server.
WebDavHttpExceptionServer returned unknown error.
WebDavExceptionUnexpected error occurred.
Remarks

Usually you will use value returned by this property to restore broken upload.

This method submits REPORT request to a file with upload-progress type.

See Also