From ecae04bc64f2dd05b6d73a39ec5abb5c83747277 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Sun, 5 Sep 2021 19:52:40 +0200 Subject: [PATCH] jdjufrw --- files/helpers/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/images.py b/files/helpers/images.py index 9ae1e4d8f..bd6d9e50a 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -103,7 +103,7 @@ def upload_video(file): headers = {"Authorization": f"Client-ID {IMGUR_KEY}"} with open(file_path, 'rb') as f: try: - r = requests.post('https://api.imgur.com/3/upload', headers=headers, data={"video": f}) + r = requests.post('https://api.imgur.com/3/upload', headers=headers, files={"video": f}) print(r.text) #r.raise_for_status()