Skip to content

Chunked upload does'nt work with SDK version 3.0.0... #671

@c-rei

Description

@c-rei

When I used below code to chunked upload a big file, it is working with SDK version 2.14.0, but when I update
SDK version to 3.0.0, it does'nt work.

my code

chunked_uploader = some_folder.get_chunked_uploader(file_path)
uploaded_file = chunked_uploader.start()

error detail

Traceback (most recent call last):
File "", line 1, in
File "C:\virtual\box\lib\site-packages\boxsdk\util\chunked_uploader.py", line 43, in start
self._upload()
File "C:\virtual\box\lib\site-packages\boxsdk\util\chunked_uploader.py", line 90, in _upload
next_part = self._inflight_part or self._get_next_part()
File "C:\virtual\box\lib\site-packages\boxsdk\util\chunked_uploader.py", line 112, in _get_next_part
bytes_read = self._content_stream.read(self._upload_session.part_size - copied_length)
ValueError: read of closed file

Versions Used

Python SDK: 3.0.0
Python: 3.8.8

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions