Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: allow docs in nda upload
Marc Seitze66d345db9d9
diff --git a/components/links/link-sheet/agreement-panel/index.tsx b/components/links/link-sheet/agreement-panel/index.tsxindex 85674797..971507f4 100644--- a/components/links/link-sheet/agreement-panel/index.tsx+++ b/components/links/link-sheet/agreement-panel/index.tsx@@ -62,8 +62,13 @@ export default function AgreementSheet({const contentType = currentFile.type;const supportedFileType = getSupportedContentType(contentType);- if (!supportedFileType || contentType !== "application/pdf") {- toast.error("Unsupported file format. Please upload a PDF file.");+ if (+ !supportedFileType ||+ (supportedFileType !== "pdf" && supportedFileType !== "docs")+ ) {+ toast.error(+ "Unsupported file format. Please upload a PDF or Word file.",+ );return;}