diff --git a/astrbot/dashboard/server.py b/astrbot/dashboard/server.py index e3f28cb55..8177359dd 100644 --- a/astrbot/dashboard/server.py +++ b/astrbot/dashboard/server.py @@ -23,6 +23,7 @@ class AstrBotDashboard(): self.config = core_lifecycle.astrbot_config self.data_path = os.path.abspath(os.path.join(DATAPATH, "dist")) self.app = Quart("dashboard", static_folder=self.data_path, static_url_path="/") + self.app.config['MAX_CONTENT_LENGTH'] = 128 * 1024 * 1024 # 将Flask允许的最大上传文件体大小设置为128MB self.app.json.sort_keys = False self.app.before_request(self.auth_middleware) # token 用于验证请求