remotes/1693045480750635534/spooky-22
Aevann1 2021-07-30 11:31:17 +02:00
parent 622310b098
commit 02d3c426a0
1 changed files with 7 additions and 3 deletions

View File

@ -329,11 +329,15 @@ def settings_images_profile(v):
abort(413)
highres = upload_file(request.files["profile"], (100,100))
print(highres)
if not highres: abort(400)
imageurl = upload_from_file("image.gif")
print(imageurl)
if not imageurl: abort(400)
v.highres = highres
v.profileurl = imageurl
g.db.add(v)
return render_template("settings_profile.html", v=v, msg="Profile picture successfully updated.")
return render_template("settings_profile.html",
v=v, msg="Profile picture successfully updated.")
@app.post("/settings/images/banner")