forked from MarseyWorld/MarseyWorld
add 500MB limit in WPD
parent
cb62c760a8
commit
b79172a1a2
|
@ -523,6 +523,8 @@ def is_repost():
|
|||
@limiter.limit(POST_RATE_LIMIT, key_func=get_ID)
|
||||
@auth_required
|
||||
def submit_post(v:User, sub=None):
|
||||
if request.content_length > 500 * 1024 * 1024:
|
||||
return {"error": "Max file size is 500 MB."}, 413
|
||||
|
||||
url = request.values.get("url", "").strip()
|
||||
|
||||
|
|
Loading…
Reference in New Issue