Increase file upload size to 1GB

This commit is contained in:
JonnyWong16 2020-05-03 18:11:49 -07:00
parent 8c7476a670
commit 25c850e243
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 3 additions and 0 deletions

View file

@ -3738,6 +3738,7 @@ class WebInterface(object):
else:
return {'result': 'error', 'message': 'Failed to delete device.'}
@cherrypy.config(**{'response.timeout': 3600})
@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth(member_of("admin"))

View file

@ -89,6 +89,8 @@ def initialize(options):
'server.socket_host': options['http_host'],
'environment': options['http_environment'],
'server.thread_pool': 10,
'server.max_request_body_size': 1073741824,
'server.socket_timeout': 60,
'tools.encode.on': True,
'tools.encode.encoding': 'utf-8',
'tools.decode.on': True