fix: correct max file size in boot
This commit is contained in:
parent
5af9b294f5
commit
28d05c41c3
2 changed files with 5 additions and 5 deletions
|
|
@ -184,7 +184,7 @@ def init_request(request):
|
|||
|
||||
request.max_content_length = get_max_file_size()
|
||||
else:
|
||||
request.max_content_length = cint(frappe.local.conf.get("max_file_size")) or 10 * 1024 * 1024
|
||||
request.max_content_length = cint(frappe.local.conf.get("max_file_size")) or 25 * 1024 * 1024
|
||||
make_form_dict(request)
|
||||
|
||||
if request.method != "OPTIONS":
|
||||
|
|
|
|||
|
|
@ -122,12 +122,12 @@ def get_letter_heads():
|
|||
|
||||
|
||||
def load_conf_settings(bootinfo):
|
||||
from frappe import conf
|
||||
from frappe.core.api.file import get_max_file_size
|
||||
|
||||
bootinfo.max_file_size = conf.get("max_file_size") or 10485760
|
||||
bootinfo.max_file_size = get_max_file_size()
|
||||
for key in ("developer_mode", "socketio_port", "file_watcher_port"):
|
||||
if key in conf:
|
||||
bootinfo[key] = conf.get(key)
|
||||
if key in frappe.conf:
|
||||
bootinfo[key] = frappe.conf.get(key)
|
||||
|
||||
|
||||
def load_desktop_data(bootinfo):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue