Upload large file (250MB+) in browser using REST API

%3CLINGO-SUB%20id%3D%22lingo-sub-105315%22%20slang%3D%22en-US%22%3EUpload%20large%20file%20(250MB%2B)%20in%20browser%20using%20REST%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-105315%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EWhat%20magic%20is%20required%20to%20upload%20files%20larger%20than%20250MB%20using%20the%20REST%20Api%20with%20JS%20in%20the%20browser%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBelow%20works%20great%20up%20until%20about%20250MB%20file%20size%2C%20then%20the%20browser%20bombs%20out%2C%20tested%20using%20all%20browsers.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdev.office.com%2Fsharepoint%2Fdocs%2Fsp-add-ins%2Fupload-a-file-by-using-the-rest-api-and-jquery%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdev.office.com%2Fsharepoint%2Fdocs%2Fsp-add-ins%2Fupload-a-file-by-using-the-rest-api-and-jquery%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETried%20using%20the%20PNP-JS%20method%20and%20same%20restriction%20was%20encountered%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fwww.ktskumar.com%2F2016%2F09%2Fpnp-js-core-upload-file-sharepoint%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.ktskumar.com%2F2016%2F09%2Fpnp-js-core-upload-file-sharepoint%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConsidering%20this%20Working%20with%20large%20files%20using%20REST%20API%20may%20be%20required%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdev.office.com%2Fsharepoint%2Fdocs%2Fsp-add-ins%2Fworking-with-folders-and-files-with-rest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdev.office.com%2Fsharepoint%2Fdocs%2Fsp-add-ins%2Fworking-with-folders-and-files-with-rest%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-194671%22%20slang%3D%22en-US%22%3ERe%3A%20Upload%20large%20file%20(250MB%2B)%20in%20browser%20using%20REST%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-194671%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20it%20seems%20technically%20the%20rest%20API%20can%20support%20files%20chunks%20up%20to%202GB%20in%20size%2C%20but%20a%20browsers%20memory%20can't.%20What%20you%20need%20to%20to%20do%20is%20split%20a%20file%20and%20upload%20in%20say%2010mb%20chunks%20and%20it%20works%20great%2C%20all%20dependent%20on%20internet%20connection%20also.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-186490%22%20slang%3D%22en-US%22%3ERe%3A%20Upload%20large%20file%20(250MB%2B)%20in%20browser%20using%20REST%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-186490%22%20slang%3D%22en-US%22%3EI'd%20like%20to%20know%20this%20myself.%20There's%20zero%20documentation%20on%20this.%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

What magic is required to upload files larger than 250MB using the REST Api with JS in the browser?

 

Below works great up until about 250MB file size, then the browser bombs out, tested using all browsers.

https://dev.office.com/sharepoint/docs/sp-add-ins/upload-a-file-by-using-the-rest-api-and-jquery

 

Tried using the PNP-JS method and same restriction was encountered

http://www.ktskumar.com/2016/09/pnp-js-core-upload-file-sharepoint/

 

Considering this Working with large files using REST API may be required

https://dev.office.com/sharepoint/docs/sp-add-ins/working-with-folders-and-files-with-rest

 

 

2 Replies
Highlighted
I'd like to know this myself. There's zero documentation on this.
Highlighted

So it seems technically the rest API can support files chunks up to 2GB in size, but a browsers memory can't. What you need to to do is split a file and upload in say 10mb chunks and it works great, all dependent on internet connection also.