ADO.NET Provider for Microsoft Office 365

Build 25.0.9434

UploadFile

Uploads a new file or replaces the content of an existing file in OneDrive or SharePoint.

Input

Name Type Required Accepts Input Streams Description
FileName String False False Name of the file to upload content to. Provide this only if uploading to an existing file.
ParentId String True False Identifier of the folder where the uploaded file should be placed.
Content String False False Raw content to upload as the file's contents.
LocalFile String False False Path to the local file whose content is uploaded.
ContentStream String False True Stream of the file content to upload, used when LocalFile or Content is not specified.

Result Set Columns

Name Type Description
Id String Identifier of the file that was uploaded.
* String Complete set of output fields returned after the file upload operation, including metadata.

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