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

Get-PnPFile : Error when downloading large files. #1797

Open
Yuwhan opened this issue Dec 7, 2018 · 6 comments
Open

Get-PnPFile : Error when downloading large files. #1797

Yuwhan opened this issue Dec 7, 2018 · 6 comments

Comments

@Yuwhan
Copy link

Yuwhan commented Dec 7, 2018

Reporting an Issue or Missing Feature

Error when downloading large files >2GB

Expected behavior

Download the large files >2GB

Actual behavior

Get-PnPFile : Invalid MIME content-length header encountered on read.
Au caractère Ligne:1 : 1
Get-PnPFile -Url $source -Path $target -AsFile
CategoryInfo : WriteError: (:) [Get-PnPFile], FormatException
FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Files.GetFile

Steps to reproduce behavior

Get-PnPFile -Url /sites/project/folder/4GBfile.txt -Path $destination -AsFile

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

PnP PowerShell for SharePoint Online

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

3.3.1811.0

How did you install the PnP-PowerShell Cmdlets?

Installed through the PowerShell Gallery with Install-Module

Suggestion for improvement

Download files with a direct to disk method to bypass 2GB object limitation.
That probably implies to verify checksum integrity of files.

@Yuwhan
Copy link
Author

Yuwhan commented Dec 7, 2018

Otherwise, when find-pnpfile getting the name of large files, they are truncated.
ie: fic1.tiff returns fic1.tif

@fridden
Copy link

fridden commented Oct 14, 2019

I am experience this as well, with version 3.13.1909.0 of the SharePointPnPPowershellOnline module.
Any progress of this issue, or any workarounds?

@Yuwhan
Copy link
Author

Yuwhan commented Oct 14, 2019

Hello,

Still nothing for the moment.
The easy solution: Just download larger files by http method with IE (comobject). It’s a dirty but fulyfunctional solution.

Regards

@Dhananjana
Copy link

Hello,
I am also got the same issue with version 3.20.20..of the SharePointPnPPowershellOnline module.. do their any update on this issue?

@beliaev-maksim
Copy link

any update here?

@beliaev-maksim
Copy link

@KoenZomers , @erwinvanhunen
Hi guys,
do you know if we can somehow bypass this limitation and download large files?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants