diff --git a/cbpi/craftbeerpi.py b/cbpi/craftbeerpi.py index a5a44aa..0c92028 100644 --- a/cbpi/craftbeerpi.py +++ b/cbpi/craftbeerpi.py @@ -91,7 +91,8 @@ class CraftBeerPi: policy = auth.SessionTktAuthentication(urandom(32), 60, include_ip=True) middlewares = [web.normalize_path_middleware(), session_middleware(EncryptedCookieStorage(urandom(32))), auth.auth_middleware(policy), error_middleware] - self.app = web.Application(middlewares=middlewares) + # max upload size increased to 5 Mb. Default is 1 Mb -> config and svg upload + self.app = web.Application(middlewares=middlewares, client_max_size=5*1024*1024) self.app["cbpi"] = self self._setup_shutdownhook()