forked from rDrama/rDrama
really nigga
parent
564b0096c1
commit
4684f822c0
|
@ -98,6 +98,7 @@ class UploadException(Exception):
|
||||||
def upload_video(file):
|
def upload_video(file):
|
||||||
|
|
||||||
file_path = path.join("temp", secure_filename(file.filename))
|
file_path = path.join("temp", secure_filename(file.filename))
|
||||||
|
file.save(file_path)
|
||||||
|
|
||||||
headers = {"Authorization": f"Client-ID {IMGUR_KEY}"}
|
headers = {"Authorization": f"Client-ID {IMGUR_KEY}"}
|
||||||
with open(file_path, 'rb') as f:
|
with open(file_path, 'rb') as f:
|
||||||
|
|
Loading…
Reference in New Issue