Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

push: customizable upload chunk size #840

Merged
merged 1 commit into from
Jan 10, 2017

Conversation

odeke-em
Copy link
Owner

Updates
#28 (comment).

Allows one to customize the upload chunk size in bytes.
By default, the internal Google API's upload chunk size is 8MiB,
minimum chunk size is 256KiB. Any custom chunk size should be at
least 256KiB and also a multiple of 256KiB. Please see
https://godoc.org/google.golang.org/api/googleapi#pkg-constants.

  • Exhibit:
$ drive push -upload-chunk-size 524288 demo.mp4

Updates
#28 (comment).

Allows one to customize the upload chunk size in bytes.
By default, the internal Google API's upload chunk size is 8MiB,
minimum chunk size is 256KiB. Any custom chunk size should be at
least 256KiB and also a multiple of 256KiB. Please see
https://godoc.org/google.golang.org/api/googleapi#pkg-constants.

* Exhibit:
```shell
$ drive push -upload-chunk-size 524288 demo.mp4
```
@odeke-em odeke-em merged commit 5278f2b into master Jan 10, 2017
@odeke-em odeke-em mentioned this pull request Jan 10, 2017
@odeke-em odeke-em deleted the customizable-upload-chunk-size branch January 24, 2017 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant