Merge pull request #2584 from owncloud/lower_tus_size

lower TUS max chunk size from infinite to 0.1 GB
This commit is contained in:
Willy Kloucek
2021-10-20 17:07:44 +02:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
Enhancement: Lower TUS max chunk size
We've lowered the TUS max chunk size from infinite to 0.1GB so that chunking actually happens.
https://github.com/owncloud/ocis/pull/2584
https://github.com/cs3org/reva/pull/2136

View File

@@ -202,7 +202,7 @@ func FrontendWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.IntFlag{
Name: "upload-max-chunk-size",
Value: flags.OverrideDefaultInt(cfg.Reva.UploadMaxChunkSize, 0),
Value: flags.OverrideDefaultInt(cfg.Reva.UploadMaxChunkSize, 1e+8), // 0.1 GB
Usage: "Max chunk size in bytes to advertise to clients through capabilities, or 0 for unlimited",
EnvVars: []string{"STORAGE_FRONTEND_UPLOAD_MAX_CHUNK_SIZE"},
Destination: &cfg.Reva.UploadMaxChunkSize,