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