We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92c0ff5 commit fdff081Copy full SHA for fdff081
cli-tool/cli.py
@@ -73,7 +73,7 @@ def upload_media():
73
if os.path.isdir(path):
74
for filename in os.listdir(path):
75
files = {}
76
- abs = os.path.abspath("{path}/{filename}")
+ abs = os.path.abspath(f"{path}/{filename}")
77
files['media_file'] = open(f'{abs}', 'rb')
78
response = requests.post(url=f'{BASE_URL}/media', headers=headers, files=files)
79
if response.status_code == 201:
0 commit comments