Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: treat DWG files as download-only instead of processing with Trigger
Cursor Agent4a7a4c56559b
diff --git a/lib/api/documents/process-document.ts b/lib/api/documents/process-document.tsindex 72140822..5312bc75 100644--- a/lib/api/documents/process-document.ts+++ b/lib/api/documents/process-document.ts@@ -125,7 +125,8 @@ export const processDocument = async ({type === "zip" ||type === "map" ||type === "email" ||- contentType === "text/tab-separated-values";+ contentType === "text/tab-separated-values" ||+ contentType === "image/vnd.dwg";// Save data to the databaseconst document = await prisma.document.create({@@ -215,7 +216,7 @@ export const processDocument = async ({);}- if (type === "cad") {+ if (type === "cad" && contentType !== "image/vnd.dwg") {await convertCadToPdfTask.trigger({documentId: document.id,