Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: support older m4a mimetype
Marc Seitz3faecbd28243
diff --git a/lib/constants.ts b/lib/constants.tsindex b4fa9f48..5c45a2fb 100644--- a/lib/constants.ts+++ b/lib/constants.ts@@ -93,6 +93,8 @@ export const SUPPORTED_DOCUMENT_MIME_TYPES = ["video/webm", // .webm"video/ogg", // .ogg"audio/mp4", // .m4a+ "audio/x-m4a", // .m4a (older MIME type)+ "audio/m4a", // .m4a (alternative MIME type)"audio/mpeg", // .mp3"application/vnd.google-earth.kml+xml", // .kml"application/vnd.google-earth.kmz", // .kmz@@ -141,6 +143,8 @@ export const FULL_PLAN_ACCEPTED_FILE_TYPES = {"video/webm": [], // ".webm""video/ogg": [], // ".ogg""audio/mp4": [], // ".m4a"+ "audio/x-m4a": [], // ".m4a"+ "audio/m4a": [], // ".m4a""audio/mpeg": [], // ".mp3""application/vnd.google-earth.kml+xml": [".kml"], // ".kml""application/vnd.google-earth.kmz": [".kmz"], // ".kmz"diff --git a/lib/utils/get-content-type.ts b/lib/utils/get-content-type.tsindex c80cdd8b..9d396825 100644--- a/lib/utils/get-content-type.ts+++ b/lib/utils/get-content-type.ts@@ -35,6 +35,8 @@ export function getSupportedContentType(contentType: string): string | null {case "video/webm":case "video/ogg":case "audio/mp4":+ case "audio/x-m4a":+ case "audio/m4a":case "audio/mpeg":return "video";case "application/vnd.google-earth.kml+xml":@@ -101,6 +103,8 @@ export function getExtensionFromContentType(case "video/ogg":return "ogg";case "audio/mp4":+ case "audio/x-m4a":+ case "audio/m4a":return "m4a";case "audio/mpeg":return "mp3";