Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: increase page number limit to 500
Marc Seitz4497c3269aba
diff --git a/components/document-upload.tsx b/components/document-upload.tsxindex 1dcd4c82..6f212d87 100644--- a/components/document-upload.tsx+++ b/components/document-upload.tsx@@ -85,7 +85,7 @@ export default function DocumentUpload({.arrayBuffer().then((buffer) => {getPagesCount(buffer).then((numPages) => {- if (numPages > 300) {+ if (numPages > 500) {toast.error("File has too many pages (max. 100)");} else {setCurrentFile(file);diff --git a/components/upload-zone.tsx b/components/upload-zone.tsxindex 8ed45344..61cb4bc0 100644--- a/components/upload-zone.tsx+++ b/components/upload-zone.tsx@@ -117,7 +117,7 @@ export default function UploadZone({const buffer = await file.arrayBuffer();numPages = await getPagesCount(buffer);- if (numPages > 150) {+ if (numPages > 500) {setUploads((prev) =>prev.filter((upload) => upload.fileName !== file.name),);@@ -125,7 +125,7 @@ export default function UploadZone({return setRejectedFiles((prev) => [{fileName: file.name,- message: "File has too many pages (max. 150)",+ message: "File has too many pages (max. 100)",},...prev,]);