diff --git a/frappe/boot.py b/frappe/boot.py index 3536109d8c..00943c1d1f 100644 --- a/frappe/boot.py +++ b/frappe/boot.py @@ -75,7 +75,7 @@ def get_bootinfo(): def load_conf_settings(bootinfo): from frappe import conf - bootinfo.max_file_size = conf.get('max_file_size') or 5242880 + bootinfo.max_file_size = conf.get('max_file_size') or 10485760 for key in ['developer_mode']: if key in conf: bootinfo[key] = conf.get(key) diff --git a/frappe/utils/file_manager.py b/frappe/utils/file_manager.py index 3181ebc325..21dab7b2b2 100644 --- a/frappe/utils/file_manager.py +++ b/frappe/utils/file_manager.py @@ -198,7 +198,7 @@ def save_file_on_filesystem(fname, content, content_type=None, is_private=0): } def check_max_file_size(content): - max_file_size = conf.get('max_file_size') or 5242880 + max_file_size = conf.get('max_file_size') or 10485760 file_size = len(content) if file_size > max_file_size: