From f8bd2057478a5b122952fd2523c76545a0062449 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Wed, 31 Aug 2022 15:22:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=99=90=E5=88=B6,=E6=9C=80=E5=A4=A7100kb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 1 + config.py | 1 + 2 files changed, 2 insertions(+) diff --git a/app.py b/app.py index f6644ca..6faa41d 100644 --- a/app.py +++ b/app.py @@ -155,6 +155,7 @@ def upload_file(): if request.method == 'POST': try: f = request.files['file'] + # print(f.size) # print(f) # print(request.files) filename = secure_filename(f.filename) diff --git a/config.py b/config.py index 8606f9a..7a1d731 100644 --- a/config.py +++ b/config.py @@ -29,4 +29,5 @@ RETRY_CNT = 3 # 验证码重试次数 OCR_API = 'http://dm.mudery.com:10000' # 验证码识别接口,传参数data UNAME = 'admin' # 管理员账号 PWD = 'drpy' # 管理员密码 +MAX_CONTENT_LENGTH = 1 * 1024 * 1024/100 # 100 kB # {% if config.WALL_PAPER %}"wallpaper":"{{ config.WALL_PAPER }}",{% endif %} \ No newline at end of file -- GitLab