Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: don't optimized mp4 files
Marc Seitz6ed8b87ccb7b
diff --git a/lib/api/documents/process-document.ts b/lib/api/documents/process-document.tsindex a799da6e..372b2020 100644--- a/lib/api/documents/process-document.ts+++ b/lib/api/documents/process-document.ts@@ -159,7 +159,7 @@ export const processDocument = async ({);}- if (type === "video") {+ if (type === "video" && contentType !== "video/mp4") {await processVideo.trigger({videoUrl: key,diff --git a/pages/api/teams/[teamId]/documents/[id]/versions/index.ts b/pages/api/teams/[teamId]/documents/[id]/versions/index.tsindex ebc9cc7b..9f7bd929 100644--- a/pages/api/teams/[teamId]/documents/[id]/versions/index.ts+++ b/pages/api/teams/[teamId]/documents/[id]/versions/index.ts@@ -122,7 +122,7 @@ export default async function handle();}- if (type === "video") {+ if (type === "video" && contentType !== "video/mp4") {await processVideo.trigger({videoUrl: url,