Fix file type mappings for proper MIME type handling

This commit is contained in:
yangdx 2025-08-19 15:26:21 +08:00
parent 0aa1bc8bf9
commit c6b30f1a03

View file

@ -31,10 +31,6 @@ export const supportedFileTypes = {
'text/plain': [
'.txt',
'.md',
'.pdf',
'.docx',
'.pptx',
'.xlsx',
'.rtf', //# Rich Text Format
'.odt', // # OpenDocument Text
'.tex', // # LaTeX
@ -69,8 +65,10 @@ export const supportedFileTypes = {
],
'application/pdf': ['.pdf'],
'application/msword': ['.doc'],
'application/vnd.ms-excel': ['.xls'],
'application/vnd.openxmlformats-officedocument.wordprocessingml.document': ['.docx'],
'application/vnd.openxmlformats-officedocument.presentationml.presentation': ['.pptx']
'application/vnd.openxmlformats-officedocument.presentationml.presentation': ['.pptx'],
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': ['.xlsx']
}
export const SiteInfo = {