Add support for csv + xlsx

This commit is contained in:
2026-07-31 09:17:08 +02:00
parent 4c408d83e9
commit b40a7d340f
6 changed files with 1211 additions and 1 deletions
+3
View File
@@ -14,6 +14,8 @@ const OUTPUT_MIME_TYPES = {
txt: 'text/plain',
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
md: 'text/markdown',
csv: 'text/csv',
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
};
export async function detectInputMime(filePath) {
@@ -33,6 +35,7 @@ const UNDETECTABLE_TEXT_FORMATS = {
txt: 'text/plain',
html: 'text/html',
md: 'text/markdown',
csv: 'text/csv',
};
function normalizeFormat(format) {