Namespace: ITHit.WebDAV.Client
Task<Stream> GetWriteStreamAsync( long startIndex, long contentLength, long fileTotalSize )
Exception | Condition |
---|---|
NotFoundException | This resource doesn't exist on the server. |
WebDavHttpException | Server returned unknown error. |
WebDavException | Unexpected error occurred. |
This method issues a PUT request and appends Content-Range header of the form Content-Range: bytes 21010-35145/47022 if necessary.
It will attach Content-Range: bytes XXX-XXX/XXX header only if partial content is submitted. You can always use this method instead of IItemContentAsync.GetWriteStream as Content-Range header is not attached if you upload entire file.
To upload partial content to IT Hit WebDAV Server Engine you must implement ITHit.WebDAV.Server.ResumableUpload.IResumableUploadAsync interface on server items.