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).
This commit is contained in:
nickviljoen 2026-05-15 21:26:20 +02:00
parent 70700f4f91
commit 5de8f5fe7b

View file

@ -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());