Upload File
AI-generatedSummary
Uploads binary files from workflow items to a SharePoint folder.
Inputs
- uploadInputMode (required) — Choose 'Manual' to set Folder Path, or 'From SharePoint URL' to parse the target folder from a SharePoint URL.
- uploadPath (required) — Server-relative path to the target folder (e.g., /kb/it/WikiDocuments). Only visible when Input Mode is Manual.
- uploadUrl (required) — SharePoint folder URL. Only visible when Input Mode is From SharePoint URL. Web Path and Folder Path are auto-derived.
- uploadBinaryProperty (required) — Name of the binary property containing the file data to upload (default: 'data').
- uploadFileName — Override the output file name. If empty, the name from the binary property is used.
- uploadOverwrite — Whether to overwrite an existing file with the same name (default: true).
- sitePath — Optional SharePoint web path (e.g., /dep/it/aa). Used to resolve the Site URL if the Upload URL does not contain it.
Output shape
One item per input file, containing JSON metadata and the SharePoint server response.
Returns a JSON object with 'success', 'fileName', 'folderPath', 'sitePath', and 'serverResponse'.
Examples
Example 1: Upload a file from the previous node's binary data to a specific folder.
Upload Input Mode: Manual; Folder Path: /kb/it/Docs; Binary Property: data; Overwrite: true
Example 2: Parse the target folder from a SharePoint URL and upload the file.
Upload Input Mode: From SharePoint URL; Upload URL: https://portal.evraz.com/kb/it/Docs/Forms/AllItems.aspx; Binary Property: data