OneDrive/ODConnection.public.cs
/// <summary>
/// Uploads a file using the resumable fragment upload API, splitting the file into smaller pieces to upload.
/// 
/// You can use this method to replace an existing item (using itemReference.Id) or to upload a new item
/// (using itemReference.Path).
/// </summary>
/// <param name="itemReference"></param>
/// <param name="sourceFileStream"></param>
/// <param name="options"></param>
/// <returns></returns>
Uploads a file using the resumable fragment upload API, splitting the file into smaller pieces to upload.

You can use this method to replace an existing item (using itemReference.Id) or to upload a new item
(using itemReference.Path).
Uploads a file using the resumable fragment upload API splitting the file into smaller pieces to upload . You can use this method to replace an existing item ( using itemReference . Id ) or to upload a new item ( using itemReference . Path ) .
public async Task<ODItem> UploadLargeFileAsync(ODItemReference itemReference, Stream sourceFileStream, ItemUploadOptions options)
        {
            if (!itemReference.IsValid())
                throw new ArgumentException("parentItemReference isn't valid");
            if (null == sourceFileStream)
                throw new ArgumentNullException("sourceFileStream");
            if (null == options)
                throw new ArgumentNullException("options");
            Uri serviceUri = UriForItemReference(itemReference, ApiConstants.UploadCreateSessionAction);
            return await StartLargeFileTransfer(serviceUri, sourceFileStream, options);
        }
public async Task < ODItem > UploadLargeFileAsync ( ODItemReference itemReference , Stream sourceFileStream , ItemUploadOptions options ) { if ( ! itemReference . IsValid ( ) ) throw new ArgumentException ( " " ) ; if ( null == sourceFileStream ) throw new ArgumentNullException ( " " ) ; if ( null == options ) throw new ArgumentNullException ( " " ) ; Uri serviceUri = UriForItemReference ( itemReference , ApiConstants . UploadCreateSessionAction ) ; return await StartLargeFileTransfer ( serviceUri , sourceFileStream , options ) ; }
Uploads a file using the resumable fragment upload API, splitting the file into smaller pieces to upload.
Uploads a file using the resumable fragment upload API splitting the file into smaller pieces to upload .
None
itemReference
ODItemReference
None
sourceFileStream
Stream
None
options
ItemUploadOptions
None