This commit is contained in:
1 parent
dab827390c
commit
240430b8a4
1 file changed
+1
-1
+1
-1
@@ -45,7 +45,7 @@ def upload_media(client, file_path, parent_type, parent_node):
|
|||||||
_, filename = os.path.split(file_path)
|
_, filename = os.path.split(file_path)
|
||||||
file_size = os.path.getsize(file_path)
|
file_size = os.path.getsize(file_path)
|
||||||
|
|
||||||
with open(file_path) as f:
|
with open(file_path, "rb") as f:
|
||||||
request: UploadAllMediaRequest = (
|
request: UploadAllMediaRequest = (
|
||||||
UploadAllMediaRequest.builder()
|
UploadAllMediaRequest.builder()
|
||||||
.request_body(
|
.request_body(
|
||||||
|
|||||||
Reference in new issue
Block a user