Skip to content

Commit 7fa0f36

Browse files
docs(storage): add document about default chunk size (#167)
Co-authored-by: Frank Natividad <[email protected]>
1 parent 63cc73e commit 7fa0f36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

google/cloud/storage/blob.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,9 @@ def _initiate_resumable_upload(
13771377
(Optional) Chunk size to use when creating a
13781378
:class:`~google.resumable_media.requests.ResumableUpload`.
13791379
If not passed, will fall back to the chunk size on the
1380-
current blob.
1380+
current blob, if the chunk size of a current blob is also
1381+
`None`, will set the default value.
1382+
The default value of ``chunk_size`` is 100 MB.
13811383
13821384
:type if_generation_match: long
13831385
:param if_generation_match: (Optional) Make the operation conditional on whether
@@ -1490,6 +1492,7 @@ def _do_resumable_upload(
14901492
"""Perform a resumable upload.
14911493
14921494
Assumes ``chunk_size`` is not :data:`None` on the current blob.
1495+
The default value of ``chunk_size`` is 100 MB.
14931496
14941497
The content type of the upload will be determined in order
14951498
of precedence:

0 commit comments

Comments
 (0)