Actions11
- Message Actions
- Calendar Actions
- SharePoint Actions
SharePoint → Upload File
AI-generatedSummary
Upload a single file to a specified SharePoint site and document library, allowing optional folder placement and control over overwriting existing files.
Inputs
- SharePoint Site (required) — Select the SharePoint site where the file will be uploaded.
- Document Library — Choose the document library within the site to store the file. Defaults to 'root'.
- Folder Path — Specify the folder path within the document library to upload the file to. Leave empty to upload to the library root.
- Overwrite Existing — Set to true to overwrite files with the same name; false to avoid overwriting.
- File Name (required) — Provide the name of the file to upload.
- File Content (required) — Provide the content of the file as a string (plain text or base64) or a Buffer.
Output shape
a single JSON object representing the uploaded file's metadata including its ID, web URL, size, and MIME type
If the file size is under 4 MB, a simple upload method is used; larger files are uploaded in chunks via an upload session. Filename invalid characters are sanitized before upload. Overwrite behavior depends on the 'Overwrite Existing' parameter.
Examples
Example 1: Uploading a text file to a SharePoint site's specified document library folder with overwrite enabled.
Set SharePoint Site, Document Library, Folder Path, Overwrite to true, input File Name as 'report.txt', and File Content as a UTF-8 string or base64 encoded content.