Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

feat!: Multiple Chunk Upload Support #486

Merged
merged 19 commits into from
Dec 30, 2021
Merged
Show file tree
Hide file tree
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
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,19 @@ The maximum number of retries to attempt. Default: 5.
- Type: `function`
- *Optional*

Custom function returning a boolean inidicating whether or not to retry an error.
Custom function returning a boolean indicating whether or not to retry an error.


##### config.chunkSize

- Type: `number`
- *Optional*

Enables [Multiple chunk upload](https://cloud.google.com/storage/docs/performing-resumable-uploads#chunked-upload) mode and sets each request size to this amount.

This only makes sense to use for larger files. The chunk size should be a multiple of 256 KiB (256 x 1024 bytes). Larger chunk sizes typically make uploads more efficient. We recommend using at least 8 MiB for the chunk size.

Review [documentation](https://cloud.google.com/storage/docs/performing-resumable-uploads) for guidance and best practices.

---
<a name="events"></a>
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,13 @@
"@types/async-retry": "^1.4.3",
"@types/configstore": "^5.0.0",
"@types/extend": "^3.0.1",
"@types/is-stream": "^1.1.0",
"@types/mocha": "^8.0.0",
"@types/mockery": "^1.4.29",
"@types/node": "^16.0.0",
"@types/pumpify": "^1.4.1",
"@types/sinon": "^10.0.0",
"c8": "^7.0.0",
"gts": "^2.0.0",
"is-stream": "^2.0.0",
danielbankhead marked this conversation as resolved.
Show resolved Hide resolved
"linkinator": "^2.0.0",
"mocha": "^8.0.0",
"mockery": "^2.1.0",
Expand Down
Loading