change default max_file_size to 3MB, its 2014
This commit is contained in:
parent
c534a3bbd9
commit
2349f9283d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue