Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boxsdk/util/chunked_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def _upload(self) -> None:
next_part = self._inflight_part or self._get_next_part()
# Set the retrieve part to the current part inflight.
self._inflight_part = next_part
self._sha1.update(next_part.chunk)
# Retrieve the uploaded part if the part has already been uploaded. If not upload the current part.
uploaded_part = self._part_definitions.get(next_part.offset) or next_part.upload()
self._inflight_part = None
# Record that the part has been uploaded.
self._sha1.update(next_part.chunk)
self._part_array.append(uploaded_part)
self._part_definitions[next_part.offset] = uploaded_part

Expand Down