Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add previewFileMimeTypes to defaultconfig.go #4414

Merged
merged 4 commits into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Add previewFileMimeTypes to web default config

We've added previewFileMimeTypes to the web default config, so web can determine which preview types are supported
by the backend.

https://github.com/owncloud/ocis/pull/4414
2 changes: 1 addition & 1 deletion services/web/pkg/config/defaults/defaultconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func DefaultConfig() *config.Config {
},
Apps: []string{"files", "search", "preview", "text-editor", "pdf-viewer", "external", "user-management"},
Options: map[string]interface{}{
"hideSearchBar": false,
"previewFileMimeTypes": []string{"image/gif", "image/png", "image/jpeg", "text/plain"},
AlexAndBear marked this conversation as resolved.
Show resolved Hide resolved
},
},
},
Expand Down