Skip to content

Commit

Permalink
add max num files and max size to the archiver capabilities (#2106)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek authored Sep 27, 2021
1 parent 425725e commit 9928277
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/archiver-capabilities-limits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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/issues/2537
https://github.com/cs3org/reva/pull/2105
2 changes: 2 additions & 0 deletions internal/http/services/owncloud/ocs/data/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ type CapabilitiesArchiver struct {
Version string `json:"version" xml:"version" mapstructure:"version"`
Formats []string `json:"formats" xml:"formats" mapstructure:"formats"`
ArchiverURL string `json:"archiver_url" xml:"archiver_url" mapstructure:"archiver_url"`
MaxNumFiles string `json:"max_num_files" xml:"max_num_files" mapstructure:"max_num_files"`
MaxSize string `json:"max_size" xml:"max_size" mapstructure:"max_size"`
}

// CapabilitiesAppProvider holds available app provider information
Expand Down

0 comments on commit 9928277

Please sign in to comment.