OneDriveConnector.UploadSmallFileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Upload a small file (less than 4MB).
public System.Threading.Tasks.Task UploadSmallFileAsync(string filePath, string destinationPath, System.Threading.CancellationToken cancellationToken = default);
abstract member UploadSmallFileAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.UploadSmallFileAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UploadSmallFileAsync (filePath As String, destinationPath As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- filePath
- String
Path of the local file to upload.
- destinationPath
- String
Remote path to store the file, which is relative to the root of the OneDrive folder and should begin with the '/' character.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.