Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Add-PNPFile fails on uploading files larger than 250 MB #936

@ShanesCows

Description

@ShanesCows

###Notice: many issues / bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:###

  1. Is the issue related to the cmdlet itself, its parameters, the syntax, or do you suspect it is the code of the cmdlet that is causing the issue? Then please continue reporting the issue in this repo.

The issue may be underlying libraries but I am not a developer so I am not helpful in determining that.

Reporting an Issue or Missing Feature

When I try to add-pnpfile for a file larger than 250 MB I get the following error:

Add-PnPFile : The request message is too big. The server does not allow messages larger than 262144000 bytes.

Expected behavior

SPO supports much larger file sizes so I would like to be able to upload to the SPO max file size.

Actual behavior

image

Steps to reproduce behavior

Add-PnPFile -Path .\camtasia.txt -Folder fileshare

Which version of the PnP-PowerShell Cmdlets are you using?

  • PnP PowerShell for SharePoint 2013
  • PnP PowerShell for SharePoint 2016
  • [X ] PnP PowerShell for SharePoint Online

What is the version of the Cmdlet module you are running?

2.16.1706.1

How did you install the PnP-PowerShell Cmdlets?

  • MSI Installed downloaded from GitHub
  • [X ] Installed through the PowerShell Gallery with Install-Module
  • Other means

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions