Skip to content

Commit

Permalink
fix: Improve chunked upload reliability (#224)
Browse files Browse the repository at this point in the history
Co-authored-by: box-sdk-build <[email protected]>
  • Loading branch information
box-sdk-build and box-sdk-build authored Jul 18, 2024
1 parent 2b7bbe4 commit 05f0353
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "25c4224", "specHash": "137da0d", "version": "1.1.0" }
{ "engineHash": "6a7e147", "specHash": "137da0d", "version": "1.1.0" }
4 changes: 0 additions & 4 deletions box_sdk_gen/managers/chunked_uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,6 @@ def upload_big_file(
upload_session_id
)
assert processed_session_parts.total_count == total_parts
processed_session: UploadSession = self.get_file_upload_session_by_id(
upload_session_id
)
assert processed_session.num_parts_processed == total_parts
sha_1: str = file_hash.digest_hash('base64')
digest: str = ''.join(['sha=', sha_1])
committed_session: Files = self.create_file_upload_session_commit(
Expand Down
6 changes: 1 addition & 5 deletions docs/chunked_uploads.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ This operation is performed by calling function `get_file_upload_session_by_id`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/get-files-upload-sessions-id/).

<!-- sample get_files_upload_sessions_id -->

```python
self.get_file_upload_session_by_id(upload_session_id)
```
_Currently we don't have an example for calling `get_file_upload_session_by_id` in integration tests_

### Arguments

Expand Down

0 comments on commit 05f0353

Please sign in to comment.