From 2128c1bccaf799e84584442a51dbadf7bcf603c6 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Thu, 9 Sep 2021 19:02:59 +0200 Subject: [PATCH] zs --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)