From 94f52f4e6e64362b30f804821022277aaee56180 Mon Sep 17 00:00:00 2001 From: charu2210 Date: Tue, 19 May 2026 12:34:09 +0530 Subject: [PATCH] fix: resolve conflicting upload size validation limits --- src/components/FileUpload.tsx | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/components/FileUpload.tsx b/src/components/FileUpload.tsx index 6e10fd77..69c42e4f 100644 --- a/src/components/FileUpload.tsx +++ b/src/components/FileUpload.tsx @@ -47,21 +47,15 @@ export default function FileUpload({ return; } - if (file.size > 500 * 1024 * 1024) { - setError("File size exceeds 500MB limit. Please select a smaller video."); - return; - } - - // Hard limit if (file.size > MAX_FILE_SIZE) { - setError( - `File too large (${formatBytes( - file.size - )}). Maximum allowed size is 2GB.` - ); + setError( + `File too large (${formatBytes(file.size) + }). Maximum allowed size is 2GB.` + ); return; } + // Soft warning if (file.size > WARNING_FILE_SIZE) { const estimatedMinutes = Math.max(1, Math.round(file.size / (100 * 1024 * 1024)));