mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
Merge pull request #26019 from ste101/patch-1
Allow webp as background image
This commit is contained in:
commit
f90090d2b3
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ class ImageManager {
|
|||
* @return array
|
||||
*/
|
||||
private function getSupportedUploadImageFormats(string $key): array {
|
||||
$supportedFormats = ['image/jpeg', 'image/png', 'image/gif'];
|
||||
$supportedFormats = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'];
|
||||
|
||||
if ($key !== 'favicon' || $this->shouldReplaceIcons() === true) {
|
||||
$supportedFormats[] = 'image/svg+xml';
|
||||
|
|
|
|||
Loading…
Reference in a new issue