From 2349f9283d9761ea62b07d64d40a6b0277be741e Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 23 Jun 2014 12:39:14 +0530 Subject: [PATCH] change default max_file_size to 3MB, its 2014 --- frappe/utils/file_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/utils/file_manager.py b/frappe/utils/file_manager.py index b3aa94a1d9..de3fdd11c7 100644 --- a/frappe/utils/file_manager.py +++ b/frappe/utils/file_manager.py @@ -146,12 +146,12 @@ def save_file_on_filesystem(fname, content, content_type=None): } def check_max_file_size(content): - max_file_size = conf.get('max_file_size') or 1000000 + max_file_size = conf.get('max_file_size') or 3000000 file_size = len(content) if file_size > max_file_size: frappe.msgprint(_("File size exceeded the maximum allowed size of {0} MB").format( - max_file_size / 1000000.0), + max_file_size / 3000000.0), raise_exception=MaxFileSizeReachedError) return file_size