Increased file size limit upto 10MB
This commit is contained in:
parent
d45f3baa55
commit
bc731a0a69
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue