Add support for csv + xlsx
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user