remotes/1693045480750635534/spooky-22
Aevann1 2022-01-24 20:18:59 +02:00
parent 07fd24ebd1
commit 43806fc84d
1 changed files with 3 additions and 3 deletions

View File

@ -43,9 +43,9 @@ def removebackground(v):
@limiter.limit("1/second;30/minute;200/hour;1000/day")
@auth_required
def settings_profile_post(v):
if v and v.patron:
if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."}, 413
elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."}, 413
# if v and v.patron:
# if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."}, 413
# elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."}, 413
updated = False