uhzufdhzue

master
fireworks88 2021-09-09 18:41:03 +02:00
parent aa05420b8f
commit 8f2a61d5c9
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ def settings_images_banner(v):
if request.headers.get("cf-ipcountry") == "T1": return "Image uploads are not allowed through TOR.", 403
file = request.files["banner"]
file.save(f"image.{file.format}", optimize=True, quality=30)
file.save(f"image.{file.filename.split('.')[-1]}", optimize=True, quality=30)
if 'pcmemes.net' in request.host: imageurl = upload_ibb(f"image.{file.format}")
else: imageurl = upload_imgur(f"image.{file.format}")