From 5de8f5fe7b83051cad8a444d1e56ef2415de2ea5 Mon Sep 17 00:00:00 2001 From: nickviljoen Date: Fri, 15 May 2026 21:26:20 +0200 Subject: [PATCH] Video QC: fix client-side SRT rejection in upload form The accept='' attribute and help copy already allowed .srt, but a separate ALLOWED_EXTENSIONS array in upload.html's JS was filtering out .srt files as 'unsupported format'. Adding 'srt' to that array fixes the silent skip seen on Dev (file picker showed .srt as valid, then the submit handler dropped it). --- modules/video_qc/templates/video_qc/upload.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video_qc/templates/video_qc/upload.html b/modules/video_qc/templates/video_qc/upload.html index 86049b0..9a38098 100644 --- a/modules/video_qc/templates/video_qc/upload.html +++ b/modules/video_qc/templates/video_qc/upload.html @@ -123,7 +123,7 @@ const validationMessage = document.getElementById('validationMessage'); const MAX_FILES = 50; - const ALLOWED_EXTENSIONS = ['mp4', 'mov', 'avi', 'mkv']; + const ALLOWED_EXTENSIONS = ['mp4', 'mov', 'avi', 'mkv', 'srt']; let selectedFiles = []; uploadZone.addEventListener('click', () => fileInput.click());