UploadDocument
Uploads a document to the SharePoint library.
Stored Procedure Specific Information
Uploading Large Files with Chunk Upload
To upload large files, you can activate the chunk upload logic by setting the ChunkSize input to a positive value lower than 250, which is the maximum upload size limit for Microsoft SharePoint.
- Suggested Chunk Size: SharePoint recommends a chunk size of 10MB.
- Usage Limits: Uploading large files with small chunks may exceed usage limits, causing Microsoft SharePoint to throttle further requests from that client temporarily. For requests made directly in the browser, Microsoft SharePoint will redirect you to a throttling information page, and the requests will fail.
Input
Name | Type | Required | Description |
File | String | False | The path of the file to be added. |
FileContent | String | False | Base64 encoded content of the file to be added. If specified, the value of 'File' input will be ignored. |
Library | String | True | The URL of the directory you would like to upload file(s) to, relative to the base RSBSharePoint_p_URL supplied in the cmdlet's connection properties. For example: Root directory: Documents If you set the RSBSharePoint_p_URL connection property to a site collection, the relative URL corresponds to a path on the base site. If the RSBSharePoint_p_URL connection property points to a specific site, the relative URL is relative to the site supplied in the RSBSharePoint_p_URL. |
Name | String | False | The name assigned to the new file. If uploading to the root directory of the site, supply only the filename. If uploading to a folder nested at some level inside the root directory, prepend the full parent subdirectory. For example: Root Directory: filename.txt Sub-directory:MyFolder/filename.txt |
ChunkSize | Int | False | Size in MB of the chunks to be used for MultiPart Upload. |
Result Set Columns
Name | Type | Description |
Success | Boolean | Indicates whether the operation was successful or not. |
Id | String | The internal Id of the document. |
DocumentId | String | The document Id. |
DocumentIdUrl | String | The URL of the document Id. |
FileRef | String | The file reference of the document. |