mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-25 15:09:27 -06:00
add max size and max num to the archiver capabilities
This commit is contained in:
8
changelog/unreleased/archiver-capabilities-limits.md
Normal file
8
changelog/unreleased/archiver-capabilities-limits.md
Normal file
@@ -0,0 +1,8 @@
|
||||
Enhancement: Add maximum files and size to archiver capabilities
|
||||
|
||||
We added the maximum files count and maximum archive size of the archiver to the capabilities endpoint.
|
||||
Clients can use this to generate warnings before the actual archive creation fails.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2544
|
||||
https://github.com/owncloud/ocis/issues/2537
|
||||
https://github.com/cs3org/reva/pull/2105
|
||||
@@ -56,10 +56,12 @@ func Frontend(cfg *config.Config) *cli.Command {
|
||||
|
||||
archivers := []map[string]interface{}{
|
||||
{
|
||||
"enabled": true,
|
||||
"version": "2.0.0",
|
||||
"formats": []string{"tar", "zip"},
|
||||
"archiver_url": cfg.Reva.Archiver.ArchiverURL,
|
||||
"enabled": true,
|
||||
"version": "2.0.0",
|
||||
"formats": []string{"tar", "zip"},
|
||||
"archiver_url": cfg.Reva.Archiver.ArchiverURL,
|
||||
"max_num_files": cfg.Reva.Archiver.MaxNumFiles,
|
||||
"max_size": cfg.Reva.Archiver.MaxSize,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user