Question
3
Replies
1040
Views
Luxoft Technologies
Posted: March 1, 2019
Last activity: March 17, 2019
Closed
How to upload large file to Sharepoint using REST API
I have a requirement to upload a 1 GB file from PEGA UI to Sharepoint repository using Connect-REST.
I am converting the File into byte array and then sending it as part of the request body. But maximum size that it allows is 262 MB.
How to upload a file more than 262 MB using Connect-REST ?
Note : SharePoint Rest API can support upto 1 GB file.
As we couldn't find a solution to fix it from PEGA size, we tried imposing restriction when uploading.
if file size is more than 200 mb then we are not calling connect rest rule to upload the file. We will just show the error message.
But sometimes if we just upload a file using drag and drop from local drive in PEGA, it crashes the complete PEGA application saying out of memory in browser. How to fix this issue?