diff --git a/assets/js/advocate.js b/assets/js/advocate.js index 4464193..9f8bbf7 100644 --- a/assets/js/advocate.js +++ b/assets/js/advocate.js @@ -154,8 +154,8 @@ return; } files.forEach((f) => { - if (f.size > 4 * 1024 * 1024) { - setStatus(`${f.name} exceeds the 4 MB limit.`, 'error'); + if (f.size > 8 * 1024 * 1024) { + setStatus(`${f.name} exceeds the 8 MB limit.`, 'error'); return; } const ext = (f.name.split('.').pop() || '').toLowerCase(); diff --git a/assets/js/barnevernet.js b/assets/js/barnevernet.js index 4cddcda..2367f9d 100644 --- a/assets/js/barnevernet.js +++ b/assets/js/barnevernet.js @@ -200,8 +200,8 @@ return; } files.forEach((f) => { - if (f.size > 4 * 1024 * 1024) { - setStatus(`${f.name} exceeds the 4 MB limit.`, 'error'); + if (f.size > 8 * 1024 * 1024) { + setStatus(`${f.name} exceeds the 8 MB limit.`, 'error'); return; } const ext = (f.name.split('.').pop() || '').toLowerCase(); diff --git a/assets/js/deep-research.js b/assets/js/deep-research.js index 3e54d3d..5c7e25c 100644 --- a/assets/js/deep-research.js +++ b/assets/js/deep-research.js @@ -135,8 +135,8 @@ return; } files.forEach((f) => { - if (f.size > 4 * 1024 * 1024) { - setStatus(`${f.name} exceeds the 4 MB limit.`, 'error'); + if (f.size > 8 * 1024 * 1024) { + setStatus(`${f.name} exceeds the 8 MB limit.`, 'error'); return; } const ext = (f.name.split('.').pop() || '').toLowerCase(); diff --git a/includes/bootstrap.php b/includes/bootstrap.php index 030900a..1b5e508 100644 --- a/includes/bootstrap.php +++ b/includes/bootstrap.php @@ -488,7 +488,7 @@ function dbnToolsExcerpt(string $text, int $limit = 520): string return rtrim(mb_substr($text, 0, $limit - 1, 'UTF-8')) . '…'; } -const DBN_TOOLS_EXTRACT_MAX_BYTES = 4 * 1024 * 1024; +const DBN_TOOLS_EXTRACT_MAX_BYTES = 8 * 1024 * 1024; const DBN_TOOLS_EXTRACT_TEXT_LIMIT = 128000; const DBN_TOOLS_EXTRACT_ALLOWED_EXTS = ['txt', 'pdf', 'docx']; @@ -516,7 +516,7 @@ function dbnToolsExtractUploadedFile(array $file): array dbnToolsAbort('The uploaded file is empty.', 422, 'file_empty'); } if ($size > DBN_TOOLS_EXTRACT_MAX_BYTES) { - dbnToolsAbort('File exceeds the 4 MB limit.', 413, 'file_too_large'); + dbnToolsAbort('File exceeds the 8 MB limit.', 413, 'file_too_large'); } $ext = strtolower(pathinfo($originalName, PATHINFO_EXTENSION));