Question

I have a script that uploads files to Office 365 but when a big file is uploaded it fails and says operation has timed out.

Is there anyway of increasing this in PowerShell or some settings to allow my script to upload the bigger files?

Was it helpful?

Solution

It would be difficult to know the exact cause of your error without actually seeing some code or error message. One of the common reasons could be that you arent using the REST api and hence are only allowed a limited file size to upload.

The article here explains how to upload using REST with Powershell. Also check out this SO question previously answered.

As a side note, I suggest you do such operations using a console app that uses PnP Core (Legend says it makes your life worth living. Ha ha).

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top