The request message is too big. The server does not allow messages larger than 2097152 bytes. #820
Closed
1 task done
Labels
question
Further information is requested
Category
Describe the bug
Creating site pages with content larger than 2Mb throws unhandled exception.
Steps to reproduce
var libraryTitle = "SitePages"; var parentList = context.Web.Lists.GetByTitleAsync(libraryTitle, l => l.Title, l => l.Fields).Result; var content = System.IO.File.ReadAllText("D:\\Desktop\\pagewithtextstringlargerthen2mb.txt"); var page = context.Web.NewPage(); page.AddSection(CanvasSectionTemplate.OneColumn, 1); page.AddControl(page.NewTextPart(content), page.Sections[0].Columns[0]); page.Save("Heyram1.aspx");
Expected behavior
Environment details (development & target environment)
Additional context
Thanks for your contribution! Sharing is caring.
The text was updated successfully, but these errors were encountered: