Explore Plans
Mobile menu Close menu
Microsoft SharePoint

Upload a file to a document library

This action will upload a file to the SharePoint document library you choose.

Developer info

API endpoint slug
sharepoint.upload_file
Filter code method
Sharepoint.uploadFile.skip(string?: reason)
Runtime method
runAction("sharepoint.upload_file", {})

Action fields

Library Dropdown list

Label
Which document library?
Helper text
Choose the document library to upload the file to.
Slug
library
Required
true
Can have default value
false

Folder path Text input > Path to a folder

Label
Folder path
Helper text
Optional. A folder within the library, e.g. Invoices/2026. Leave blank to upload to the library root.
Slug
folder_path
Required
false
Can have default value
true
Filter code method
Sharepoint.uploadFile.setFolderPath(string: folder_path)

File Text input > File

Label
File to upload
Helper text
The file to upload — usually a file URL ingredient from a previous step, such as an attachment.
Slug
file
Required
true
Can have default value
true
Filter code method
Sharepoint.uploadFile.setFile(string: file)

File name Text input > File name

Label
File name
Helper text
Optional. The name to save the file as. If blank, the source file's name is used.
Slug
file_name
Required
false
Can have default value
true
Filter code method
Sharepoint.uploadFile.setFileName(string: file_name)