This commit is contained in:
Aevann1 2022-01-24 20:18:59 +02:00
parent 753b388781
commit fdfbfc74ee

View file

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