Warn when can't identify mimeType of files in Desktop, Obsidian clients

This commit is contained in:
Debanjum Singh Solanky
2024-02-24 19:59:03 +05:30
parent 3675ab4864
commit 03a6b491b2
2 changed files with 2 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ function filenameToMimeType (filename) {
case 'org':
return 'text/org';
default:
console.warn(`Unknown file type: ${extension}. Defaulting to text/plain.`);
return 'text/plain';
}
}