diff --git a/app/utils.py b/app/utils.py index c4b5a0a..c3b8bd5 100644 --- a/app/utils.py +++ b/app/utils.py @@ -45,7 +45,7 @@ def upload_media(client, file_path, parent_type, parent_node): _, filename = os.path.split(file_path) file_size = os.path.getsize(file_path) - with open(file_path) as f: + with open(file_path, "rb") as f: request: UploadAllMediaRequest = ( UploadAllMediaRequest.builder() .request_body(