Upload a File to a SharePoint Document Library
Overview
This procedure uploads a file to a given SharePoint document library.
Input Concepts
Concept
Description
Type
Required
Default Value
folder
The document library folder where the file will be uploaded.
sharepoint folder reference
Yes
N/A
file
The content of the file to be uploaded as bytes.
file
Yes
N/A
file name
The name of the file to be uploaded.
text
Yes
N/A
conflict behavior
The behavior when a conflict occurs. Possible values are 'fail', 'replace', 'rename'.
text
No
rename
Output Concepts
Concept
Description
Type
file reference
An item representing the uploaded file.
sharepoint file reference
Examples
This example uploads a file named "My File.txt" to the folder "My Folder". The file name is "My File.txt".
Last updated
Was this helpful?