From 59f19c1ebceb2147856023f928d83c10782fe39b Mon Sep 17 00:00:00 2001 From: Ben Hall Date: Sat, 15 Feb 2025 21:19:03 +0000 Subject: [PATCH] add warning for > 100mb file Signed-off-by: Ben Hall --- frontend/src/views/Import.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/views/Import.svelte b/frontend/src/views/Import.svelte index 8538c73..a192414 100644 --- a/frontend/src/views/Import.svelte +++ b/frontend/src/views/Import.svelte @@ -159,6 +159,11 @@ frmData.append("data_file", dataFileInput.files[0]); } if (transcriptFileInput.files.length > 0) { + if(transcriptFileInput.files[0].size > 100 * 1024 * 1024) { + transcriptFileInput.value = ""; + notifyError("Transcript file is too large, please upload a file smaller than 100MB or wait until we support larger files."); + return; + } frmData.append("transcripts_file", transcriptFileInput.files[0]); }