Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
Expand visitor file upload limits and accepted file types for data room file requests
Cursor Agentf6aba88d4a08
diff --git a/components/viewer-upload-component.tsx b/components/viewer-upload-component.tsxindex de628a4d..05a783f8 100644--- a/components/viewer-upload-component.tsx+++ b/components/viewer-upload-component.tsx@@ -220,7 +220,7 @@ export function ViewerUploadComponent({Drag & drop files here, or click to select files</p><p className="mt-1 text-xs text-muted-foreground">- Supported file types: PDF, Excel, CSV, Images+ Supported: PDF, Office, spreadsheets, images, CAD, ZIP, and more</p></div>)}diff --git a/components/viewer-upload-zone.tsx b/components/viewer-upload-zone.tsxindex a249ce43..b9e42382 100644--- a/components/viewer-upload-zone.tsx+++ b/components/viewer-upload-zone.tsx@@ -23,7 +23,7 @@ export default function ViewerUploadZone({onUploadRejected,viewerData,teamId,- maxFileSize = 30, // 30 MB default+ maxFileSize = 350, // 350 MB default, matches paid admin document limitsdisabled = false,}: {children: React.ReactNode;@@ -49,7 +49,7 @@ export default function ViewerUploadZone({if (errors.find(({ code }) => code === "file-too-large")) {message = `File size too big (max. ${maxFileSize} MB).`;} else if (errors.find(({ code }) => code === "file-invalid-type")) {- message = `File type not supported. Please upload PDF, Word, or Excel files.`;+ message = `File type not supported.`;}return { fileName: file.name, message };});@@ -186,7 +186,7 @@ export default function ViewerUploadZone({Drop your file(s) here</span><p className="mt-1 text-xs leading-5 text-muted-foreground">- Only *.pdf, *.xls, *.xlsx, *.csv, *.tsv, *.ods files+ PDF, Office, images, CAD, ZIP, and more</p></div></div>diff --git a/lib/constants.ts b/lib/constants.tsindex 317cd6a8..03de233d 100644--- a/lib/constants.ts+++ b/lib/constants.ts@@ -162,13 +162,33 @@ export const VIEWER_ACCEPTED_FILE_TYPES = {"application/pdf": [], // ".pdf""application/vnd.ms-excel": [], // ".xls""application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [], // ".xlsx"+ "application/vnd.ms-excel.sheet.macroEnabled.12": [".xlsm"], // ".xlsm""text/csv": [], // ".csv"+ "text/tab-separated-values": [".tsv"], // ".tsv""application/vnd.oasis.opendocument.spreadsheet": [], // ".ods"+ "application/vnd.ms-powerpoint": [], // ".ppt"+ "application/vnd.openxmlformats-officedocument.presentationml.presentation":+ [], // ".pptx"+ "application/vnd.oasis.opendocument.presentation": [], // ".odp"+ "application/vnd.apple.keynote": [".key"], // ".key"+ "application/x-iwork-keynote-sffkey": [".key"], // ".key""application/msword": [], // ".doc""application/vnd.openxmlformats-officedocument.wordprocessingml.document": [], // ".docx"- "image/jpeg": [], // ".jpg"+ "application/vnd.oasis.opendocument.text": [], // ".odt"+ "application/rtf": [], // ".rtf"+ "text/rtf": [], // ".rtf"+ "text/plain": [], // ".txt"+ "text/markdown": [".md"], // ".md"+ "image/vnd.dwg": [".dwg"], // ".dwg"+ "image/vnd.dxf": [".dxf"], // ".dxf""image/png": [], // ".png"+ "image/jpeg": [], // ".jpeg""image/jpg": [], // ".jpg"+ "application/zip": [], // ".zip"+ "application/x-zip-compressed": [], // ".zip"+ "application/vnd.google-earth.kml+xml": [".kml"], // ".kml"+ "application/vnd.google-earth.kmz": [".kmz"], // ".kmz"+ "application/vnd.ms-outlook": [".msg"], // ".msg"};export const SUPPORTED_DOCUMENT_SIMPLE_TYPES = [