[BUG] Get-PnpFile : The -AsMemoryStream parameter has been revoked from m365PnP/Powershell docker container ? #3900
Unanswered
brotherSand
asked this question in
General
Replies: 1 comment 1 reply
-
hi @brotherSand , this parameter has not been removed. https://github.com/pnp/powershell/blob/dev/src/Commands/Files/GetFile.cs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reporting an Issue or Missing Feature
I had a process I have been running for the last month where I pull files from SharePoint and load them to S3 using the m365pnp/powershell docker container. The plan is to have this process run as a lambda. So far it has been working with this being the method I was using to get the document contents:
$streamData = (Get-PnPFile -Url $doc.ServerRelativeUrl -AsMemoryStream)
Yesterday I updated the docker container. Now my process fails with this error:
"Get-PnPFile: A parameter cannot be found that matches parameter name 'AsMemoryStream'."
The parameter is described very clearly here:
https://pnp.github.io/powershell/cmdlets/Get-PnPFile.html
... and it was working. What happened? How did a useful method get subtracted?
What is the version of the Cmdlet module you are running?
ModuleType Version PreRelease Name PSEdition ExportedCommands
Manifest 1.2.0 PnP.PowerShell Core,Desk {Add-PnPClientSidePage, Add-PnPClientSidePageSection, Add-PnPClientSideText, Add-PnPClientSideWebPart…}
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions