Sharepoint web service Maximum request length exceeded, even if the file is at the maximum file size

I configured web.config to allow 50 MB, <httpRuntime maxRequestLength="51200" /> but when I try to add Atachment from 40MB to the sharepoint list, it fails. But it works if I increase maxRequestLength to 52 MB <httpRuntime maxRequestLength="53248" />.
What's happening?? Does the web service request call the request size? is there a way that I can fix this, so if I configure maxRequestLength to 50 MB, does it allow 50 MB?

+3
source share
3 answers

A file downloaded through WSS 3.0 web services is actually placed in the XML message itself. To make this happen, it becomes Base64 encoded . This will increase the file size by 33% due to the nature of this process. You will need to make sure that it is 33% larger than your largest files in the web.config setup that you talked about.

+5
source

The webservice is likely to encode a base64 file, it will be larger than the actual binary (and the sharepoint user interface uses the regular FileUpload)

+2
source

Fiddler -, . , -.

+1

Source: https://habr.com/ru/post/1710305/


All Articles