forked from rDrama/rDrama
fdfd
parent
3d72165a18
commit
64434681c7
|
@ -332,10 +332,10 @@ def settings_images_profile(v):
|
||||||
abort(413)
|
abort(413)
|
||||||
|
|
||||||
if request.headers.get("cf-ipcountry") == "T1": return "Image uploads are not allowed through TOR.", 403
|
if request.headers.get("cf-ipcountry") == "T1": return "Image uploads are not allowed through TOR.", 403
|
||||||
imageurl = upload_file(request.files["profile"], True)
|
highres = upload_file(request.files["profile"])
|
||||||
if not imageurl: abort(400)
|
|
||||||
highres = upload_file()
|
|
||||||
if not highres: abort(400)
|
if not highres: abort(400)
|
||||||
|
imageurl = upload_file(resize=True)
|
||||||
|
if not imageurl: abort(400)
|
||||||
v.highres = highres
|
v.highres = highres
|
||||||
v.profileurl = imageurl
|
v.profileurl = imageurl
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
|
|
Loading…
Reference in New Issue