Skip to content
Snippets Groups Projects
Commit 7c06afaa authored by Petter Rasmussen's avatar Petter Rasmussen
Browse files

Set default chunk size to 4 MiB

See prasmussen/google-api-go-client@01eb774
parent f88d083e
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ If you want to compile from source you need the go toolchain: http://golang.org/
--share Share uploaded file
--mimetype The MIME type (default will try to figure it out)
--convert File will be converted to Google Docs format
-C, --chunksize Set chunk size in bytes. Minimum is 262144, default is 1048576. Recommended to be a power of two.
-C, --chunksize Set chunk size in bytes. Minimum is 262144, default is 4194304. Recommended to be a power of two.
url:
-i, --id File Id (*)
-p, --preview Generate preview url (default)
......
......@@ -48,7 +48,7 @@ type Options struct {
Share bool `goptions:"--share, description='Share uploaded file'"`
MimeType string `goptions:"--mimetype, description='The MIME type (default will try to figure it out)'"`
Convert bool `goptions:"--convert, description='File will be converted to Google Docs format'"`
ChunkSize int64 `goptions:"-C, --chunksize, description='Set chunk size in bytes. Minimum is 262144, default is 1048576. Recommended to be a power of two.'"`
ChunkSize int64 `goptions:"-C, --chunksize, description='Set chunk size in bytes. Minimum is 262144, default is 4194304. Recommended to be a power of two.'"`
} `goptions:"upload"`
Download struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment