Skip to content

Commit

Permalink
Add Thumbnails capability
Browse files Browse the repository at this point in the history
This was previously configured in the web config.json file but now comes as a capability.
  • Loading branch information
diocas committed Nov 20, 2024
1 parent e1c2e39 commit 94a1a88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/http/services/owncloud/ocs/data/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ type CapabilitiesFilesTusSupport struct {
HTTPMethodOverride string `json:"http_method_override" mapstructure:"http_method_override" xml:"http_method_override"`
}

// CapabilitiesFilesThumbnail used to enable thumbnails on specific files on web
type CapabilitiesFilesThumbnail struct {
Enabled bool `json:"enabled" mapstructure:"enabled" xml:"enabled"`
Version string `json:"version" mapstructure:"version" xml:"version"`
SupportedMimeTypes []string `json:"supportedMimeTypes" mapstructure:"supportedMimeTypes" xml:"supportedMimeTypes"`
}

// CapabilitiesArchiver holds available archivers information.
type CapabilitiesArchiver struct {
Enabled bool `json:"enabled" mapstructure:"enabled" xml:"enabled"`
Expand Down Expand Up @@ -133,6 +140,7 @@ type CapabilitiesFiles struct {
PermanentDeletion ocsBool `json:"permanent_deletion" xml:"permanent_deletion"`
BlacklistedFiles []string `json:"blacklisted_files" mapstructure:"blacklisted_files" xml:"blacklisted_files>element"`
TusSupport *CapabilitiesFilesTusSupport `json:"tus_support" mapstructure:"tus_support" xml:"tus_support"`
Thumbnail *CapabilitiesFilesThumbnail `json:"thumbnail" mapstructure:"thumbnail" xml:"thumbnail"`
Archivers []*CapabilitiesArchiver `json:"archivers" mapstructure:"archivers" xml:"archivers"`
AppProviders []*CapabilitiesAppProvider `json:"app_providers" mapstructure:"app_providers" xml:"app_providers"`
}
Expand Down

0 comments on commit 94a1a88

Please sign in to comment.