pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
911 stars 319 forks source link

Even I am facing issue can't upload sppkg file of 11mb to sitecollection app catalog #6047

Open maheshpalle opened 4 months ago

maheshpalle commented 4 months ago
          Iam facing the same issue. How to solve this problem.

m365 spo app add -p $(sppkg file) --overwrite --scope sitecollection --appCatalogUrl $(site url)

Error: Request body larger than maxBodyLength limit

sppkg file is 11mb m365 cli v4.2.0 node v16.3.0 should i raise as new issue?

Originally posted by @suren-ms in https://github.com/pnp/cli-microsoft365/issues/2120#issuecomment-988539588

milanholemans commented 4 months ago

Hi @maheshpalle

Few questions:

Looking at the code, there might be a possibility that this doesn't work for large files. We might have to implement uploading in batches.

milanholemans commented 2 months ago

Hi @maheshpalle, seems like I cannot reproduce your issue. Just uploaded a file of 15MB to an app catalog and it works just fine. Can you give any more details?