Using jsom I have created a custom file upload page to upload file to document library. But it is not uploading files with size more than 2mb.
How can we increase the size?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
In SharePoint 2013, the default file size limit set in Central Administration is for uploading single file manually in SharePoint libraries or using server side code. When you try to upload a file more than 1.5 MB , the following error was thrown
The request message is too large.
You can change the configuration if required from central administration refer link
And if you want to work with larger file than 1.5 MB then Rest is only the option.