Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: add tsv support
Marc Seitz93e88c91fa27
diff --git a/lib/api/documents/process-document.ts b/lib/api/documents/process-document.tsindex 18a67aee..2a555936 100644--- a/lib/api/documents/process-document.ts+++ b/lib/api/documents/process-document.ts@@ -85,7 +85,11 @@ export const processDocument = async ({});// determine if the document is download only- const isDownloadOnly = type === "zip" || type === "map" || type === "email" || type === "tsv";+ const isDownloadOnly =+ type === "zip" ||+ type === "map" ||+ type === "email" ||+ contentType === "text/tab-separated-values";// Save data to the databaseconst document = await prisma.document.create({@@ -171,7 +175,11 @@ export const processDocument = async ({);}- if (type === "video" && contentType !== "video/mp4" && contentType?.startsWith("video/")) {+ if (+ type === "video" &&+ contentType !== "video/mp4" &&+ contentType?.startsWith("video/")+ ) {await processVideo.trigger({videoUrl: key,diff --git a/lib/constants.ts b/lib/constants.tsindex d8138be0..f951af23 100644--- a/lib/constants.ts+++ b/lib/constants.ts@@ -120,7 +120,7 @@ export const FULL_PLAN_ACCEPTED_FILE_TYPES = {"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [], // ".xlsx""application/vnd.ms-excel.sheet.macroEnabled.12": [".xlsm"], // ".xlsm""text/csv": [], // ".csv"- "text/tab-separated-values": [], // ".tsv"+ "text/tab-separated-values": [".tsv"], // ".tsv""application/vnd.oasis.opendocument.spreadsheet": [], // ".ods""application/vnd.ms-powerpoint": [], // ".ppt""application/vnd.openxmlformats-officedocument.presentationml.presentation":