diff options
Diffstat (limited to 'lib/Controller/AlbumsController.php')
-rw-r--r-- | lib/Controller/AlbumsController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/AlbumsController.php b/lib/Controller/AlbumsController.php index d047474b..662b6680 100644 --- a/lib/Controller/AlbumsController.php +++ b/lib/Controller/AlbumsController.php @@ -127,7 +127,8 @@ class AlbumsController extends Controller { } private function validFile(File $file, bool $shared): bool { - if (in_array($file->getMimeType(), Application::MIMES) && $this->isShared($file) === $shared) { + $allowed_mimes = array_merge(Application::IMAGE_MIMES, Application::VIDEO_MIMES); + if (in_array($file->getMimeType(), $allowed_mimes) && $this->isShared($file) === $shared) { return true; } |