master
fireworks88 2021-09-09 23:13:56 +02:00
parent 7c34ae57b2
commit 02ab8bed0f
1 changed files with 1 additions and 0 deletions

View File

@ -498,6 +498,7 @@ def settings_images_profile(v):
if request.headers.get("cf-ipcountry") == "T1": return "Image uploads are not allowed through TOR.", 403
file = request.files["profile"]
print(file.filename)
file.save(f"image.{file.filename.split('.')[-1]}")
if 'pcmemes.net' in request.host: highres = upload_ibb(f"image.{file.filename.split('.')[-1]}")
else: highres = upload_imgur(f"image.{file.filename.split('.')[-1]}")