forked from MarseyWorld/MarseyWorld
master
parent
7c34ae57b2
commit
02ab8bed0f
|
@ -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]}")
|
||||
|
|
Loading…
Reference in New Issue