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