If the file size greater than 5 MB, then the script uses the slice by slice upload method. For smaller size file, this script uses a regular file upload method. The script also shows progress status for each file block upload. The script slices the big file into blocks and uploads the sliced file content chunk by chunk. Upload a large file into SharePoint Library or OneDrive for Business site If you specify the target folder, then the folder should already exist in the Site library root folder. Leave empty if you want to upload in the root folder. $TargetFolderName – Folder where you want to upload. $SiteURL – SPO site URL or User’s OneDrive site URL. $AdminAccount – Provide admin user account. $LocalFilePath – Specify your local file path. Required details to upload a large file into SharePoint library:īefore proceeding you need to replace the following input parameters in the below script. OneDrive for Business site (ODFB) is built on top of SharePoint Online (SPO), so if you have enough permission on the required user’s OneDrive site, you can use the same script to upload a bulk file into a users’ personal site. In this post, I am going to share CSOM based PowerShell script to split a large file into multiple chunks of a smaller size and upload it into SharePoint Online site.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |