This commit is contained in:
Aevann1 2021-10-03 21:36:29 +02:00
parent 00b18ca1dc
commit 4dab5b9050
5 changed files with 9 additions and 9 deletions

View file

@ -645,7 +645,7 @@ def admin_removed(v):
@admin_level_required(4)
@validate_formkey
def admin_image_ban(v):
if request.content_length > 16 * 1024 * 1024: abort(413)
if request.content_length > 4 * 1024 * 1024: return "Max file size is 4 MB.", 413
i=request.files['file']