diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29..09d8bf7 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: patch + changes: + changed: + - Increase limit to csv size. diff --git a/microcalibration-dashboard/src/components/FileUpload.tsx b/microcalibration-dashboard/src/components/FileUpload.tsx index 9e9f5c9..3d5cab8 100644 --- a/microcalibration-dashboard/src/components/FileUpload.tsx +++ b/microcalibration-dashboard/src/components/FileUpload.tsx @@ -374,9 +374,9 @@ export default function FileUpload({ return; } - if (file.size > 50 * 1024 * 1024) { - // 50 MB limit - setError('File is too large (over 50 MB). Please use a smaller CSV file.'); + if (file.size > 500 * 1024 * 1024) { + // 500 MB limit + setError('File is too large (over 500 MB). Please use a smaller CSV file.'); return; } @@ -402,8 +402,8 @@ export default function FileUpload({ return; } - if (file.size > 50 * 1024 * 1024) { - setError('File is too large (over 50 MB). Please select a smaller CSV file.'); + if (file.size > 500 * 1024 * 1024) { + setError('File is too large (over 500 MB). Please select a smaller CSV file.'); return; }