image size for patrons
This commit is contained in:
parent
1a13a0d833
commit
ab527edf8e
4 changed files with 19 additions and 7 deletions
|
@ -506,7 +506,9 @@ def thumbnail_thread(pid):
|
|||
@is_not_banned
|
||||
@validate_formkey
|
||||
def submit_post(v):
|
||||
if request.content_length > 4 * 1024 * 1024: return "Max file size is 4 MB.", 413
|
||||
if v and v.patron:
|
||||
if request.content_length > 8 * 1024 * 1024: return "Max file size is 8 MB.", 413
|
||||
elif request.content_length > 4 * 1024 * 1024: return "Max file size is 4 MB.", 413
|
||||
|
||||
title = request.values.get("title", "").strip()
|
||||
url = request.values.get("url", "").strip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue