Files
ragflow/web/src/constants/file.ts
lys1313013 37e4485415 feat: add MDX file support (#12261)
Feat: add MDX file support  #12057 
### What problem does this PR solve?

<img width="1055" height="270" alt="image"
src="https://github.com/user-attachments/assets/a0ab49f9-7806-41cd-8a96-f593591ab36b"
/>

The page states that MDX files are supported, but uploading fails with
the error: "x.mdx: This type of file has not been supported yet!"
<img width="381" height="110" alt="image"
src="https://github.com/user-attachments/assets/4bbb7d08-cb47-416a-95fc-bc90b90fcc39"
/>


### Type of change

- [x] New Feature (non-breaking change which adds functionality)
2025-12-29 12:54:31 +08:00

22 lines
306 B
TypeScript

export const FileIconMap = {
doc: 'doc',
docx: 'doc',
pdf: 'pdf',
xls: 'excel',
xlsx: 'excel',
ppt: 'ppt',
pptx: 'ppt',
jpg: 'jpg',
jpeg: 'jpg',
png: 'png',
txt: 'text',
csv: 'pdf',
md: 'md',
mdx: 'md',
mp4: 'mp4',
avi: 'avi',
mkv: 'mkv',
rmvb: 'rmvb',
wav: 'wav',
};