From 28ea3cc9daadbf3a37736f9069c410b59863ff70 Mon Sep 17 00:00:00 2001 From: Martin Zurowietz Date: Tue, 8 Oct 2024 09:06:07 +0200 Subject: [PATCH] Allow MOV in video file regex We had a user who uploaded a MOV that was compatible with browsers so we have to allow these files here, too. --- app/Volume.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Volume.php b/app/Volume.php index b9f07b992..001402555 100644 --- a/app/Volume.php +++ b/app/Volume.php @@ -36,7 +36,7 @@ class Volume extends Model * * @var string */ - const VIDEO_FILE_REGEX = '/\.(mpe?g|mp4|webm)(\?.+)?$/i'; + const VIDEO_FILE_REGEX = '/\.(mpe?g|mp4|webm|mov)(\?.+)?$/i'; /** * The attributes that are mass assignable.