AttributeError: 'UploadSession' object has no attribute 'total_parts'
I'm getting this error when trying to use the chunk upload. Here's my code, thanks in advance!
content_stream = open(file_path, 'rb')
folder_id = client.folder(folder_id='0').create_subfolder('topic').id
us = client.folder(folder_id=folder_id).create_upload_session(file_size=total_size, file_name='test.mp4')
chunked_uploader = client.upload_session(us).get_chunked_uploader_for_stream(content_stream, total_size)
uploaded_file = chunked_uploader.start()
Please sign in to leave a comment.
Comments
0 comments