diff --git a/files/routes/posts.py b/files/routes/posts.py index b0e130ee8..caed3d27e 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -919,7 +919,7 @@ def submit_post(v): else: if file.content_type.startswith('image/'): file.save(f"image.{file.filename.split('.')[-1]}") - new_post.url = upload_imgur(f"image.{file.format}") + new_post.url = upload_imgur(f"image.{file.filename.split('.')[-1]}") else: try: post_url = upload_video(file)