import: introduce importMaxFileSize setting. Defaults to 50 MB

From Etherpad 1.8.3 onwards, the maximum allowed size for a single imported
file will always be bounded.

The maximum allowed size can be configured via importMaxFileSize.
This commit is contained in:
John McLear 2020-04-07 01:07:10 +02:00 committed by muxator
parent d1ad29a3d1
commit f4418149cb
4 changed files with 25 additions and 0 deletions

View file

@ -305,6 +305,14 @@ exports.scrollWhenFocusLineIsOutOfViewport = {
*/
exports.exposeVersion = false;
/*
* From Etherpad 1.8.3 onwards, the maximum allowed size for a single imported
* file is always bounded.
*
* File size is specified in bytes. Default is 50 MB.
*/
exports.importMaxFileSize = 50 * 1024 * 1024;
// checks if abiword is avaiable
exports.abiwordAvailable = function()
{