Description
The REST API for retrieving and uploading documents is used to support the GUI document editor.
Right now, the REST API will return documents of any size to the client. It is limited, however, to uploads of only 1MB. This value is set in mochiweb_request.erl:
% Maximum recv_body() length of 1MB
-define(MAX_RECV_BODY, (1024*1024)).
I tried changing the value to 20*1024*1024, and it appears to work fine in supporting document editing for any size of documents.
While supporting very large receive payloads might conceivably cause a load on the server, it would be no different from the load imposed by sending those large documents to the client when requested.