ADO.NET Provider for Microsoft OneDrive

Build 25.0.9434

UploadFile

Uploads a new file or overwrites an existing one in OneDrive, supporting binary content updates.

Input

Name Type Required Accepts Input Streams Description
ParentId String True False ID of the destination folder where the file should be uploaded.
DriveId String False False ID of the drive where the file should be uploaded. Use this if uploading to a drive different from the current user's default drive.
FileName String True False Name to assign to the uploaded file.
Content String False False Raw content of the file to upload, typically used for small files..
LocalFile String False False Path to a local file whose contents should be uploaded.
ContentStream String False True Stream object containing the file content to upload. Useful for large files or when streaming from memory.

Result Set Columns

Name Type Description
Success String Indicates whether the file was uploaded successfully. Returns success status or error details.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434