Skip to content

'spo file add' fails to upload files larger than 250 MB #1052

@muecs

Description

@muecs

When trying to upload a file of ~300 MB size using spo file add I get the following error message:

{
    "odata.error": {
        "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
        "message": {
            "lang": "en-US",
            "value": "The request message is too big. The server does not allow messages larger than 262144000 bytes."
        }
    }
}

It appears that files of 250 MB or more can't be uploaded in the body of a single request, as done currently.

In old REST API documentation there is mention of endpoints StartUpload, ContinueUpload, FinishUpload and CancelUpload which allow for chunked file uploads.

Would it be possible to switch to a chunked upload approach for large files? Or are there other methods to accomplish this using the CLI?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions