Hi,
I am getting the below error while trying to upload a file to sharepoint library.
The request message is too big. The server does not allow messages larger than 2097152 bytes.
The below is the code.
var _file = new FileCreationInformation();
_file.Content = ; // some byte array
_file.Overwrite = true;
_file.Url = serverrelativeurl + "/Lists/FaxList/sample.TIF";
Microsoft.SharePoint.Client.File uploadfile = list.RootFolder.Files.Add(_file);
uploadfile.ListItemAllFields["Title"] = "sample";
uploadfile.ListItemAllFields.Update();
Can anyone can help me on this.
Regards,
kiran
I am getting the below error while trying to upload a file to sharepoint library.
The request message is too big. The server does not allow messages larger than 2097152 bytes.
The below is the code.
var _file = new FileCreationInformation();
_file.Content = ; // some byte array
_file.Overwrite = true;
_file.Url = serverrelativeurl + "/Lists/FaxList/sample.TIF";
Microsoft.SharePoint.Client.File uploadfile = list.RootFolder.Files.Add(_file);
uploadfile.ListItemAllFields["Title"] = "sample";
uploadfile.ListItemAllFields.Update();
Can anyone can help me on this.
Regards,
kiran