Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: allow larger uploads

Marc Seitz82ae12af9528
diff --git a/components/document-upload.tsx b/components/document-upload.tsx
index a35a4331..9e392e95 100644
--- a/components/document-upload.tsx
+++ b/components/document-upload.tsx
@@ -41,7 +41,7 @@ export default function DocumentUpload({
setCurrentFile: React.Dispatch<React.SetStateAction<File | null>>;
}) {
const { plan, loading } = usePlan();
- const maxSize = plan === "pro" ? 100 : 30;
+ const maxSize = plan === "business" || plan === "datarooms" ? 100 : 30;
const { getRootProps, getInputProps } = useDropzone({
accept: {
"application/pdf": [], // ".pdf"
diff --git a/pages/api/file/browser-upload.ts b/pages/api/file/browser-upload.ts
index 3d9bc564..768a7b20 100644
--- a/pages/api/file/browser-upload.ts
+++ b/pages/api/file/browser-upload.ts
@@ -39,7 +39,7 @@ export default async function handler(
});
let maxSize = 30 * 1024 * 1024; // 30 MB
- if (team?.plan === "pro") {
+ if (team?.plan === "business" || team?.plan === "datarooms") {
maxSize = 100 * 1024 * 1024; // 100 MB
}