ragflow/web/src
Magicbook1108 b4e06237ef
Feat: detect docx support via header-byte inspection (#11731)
## What problem does this PR solve?

Feat: detect docx support via header-byte inspection, a further optimize
based on #11684

Not all files with a .doc extension are truly legacy .doc formats, and
some are internally valid .docx documents.
The previous implementation relied on URL suffix checks, which
misclassified these cases and was therefore not reliable.


Doc file could be previewed:

[en2zh.doc](https://github.com/user-attachments/files/23921131/en2zh.doc)

Doc file could not be previewed:

[file-sample_100kB.doc](https://github.com/user-attachments/files/23921134/file-sample_100kB.doc)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-12-04 13:41:18 +08:00
..
assets Fix: Added styles for empty states on the page. #10703 (#11588) 2025-11-28 14:03:20 +08:00
components Feat: detect docx support via header-byte inspection (#11731) 2025-12-04 13:41:18 +08:00
constants Feat: Replace antd with shadcn and delete the template node. #10427 (#11693) 2025-12-03 14:37:58 +08:00
hooks Feature:Add voice dialogue functionality to the agent application (#11668) 2025-12-02 19:39:43 +08:00
icons
interfaces Feat: Files uploaded via the dialog box can be uploaded without binding to a dataset. #9590 (#11630) 2025-12-01 16:29:02 +08:00
layouts Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
less Feat: Use data pipeline to visualize the parsing configuration of the knowledge base (#10423) 2025-10-09 12:36:19 +08:00
lib
locales Feat: confluence space key (#11706) 2025-12-03 19:17:47 +08:00
pages Feature:Add a loading status to the agent canvas page. (#11733) 2025-12-04 13:40:49 +08:00
services Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
stories feat(storybook): Storybook with Calendar and Modal components #9869 (#10626) 2025-10-17 09:58:52 +08:00
theme
utils Feature:Add voice dialogue functionality to the agent application (#11668) 2025-12-02 19:39:43 +08:00
wrappers Adjust styles to match the design system (#11118) 2025-11-10 10:05:19 +08:00
app.tsx Fix: Switch the default theme from light mode to dark mode and improve some styles #9869 (#10552) 2025-10-14 19:06:50 +08:00
conf.json
custom.d.ts Feature:Add a loading status to the agent canvas page. (#11733) 2025-12-04 13:40:49 +08:00
global.less Fix: Optimize list display and rename functionality #3221 (#9875) 2025-09-02 17:43:37 +08:00
inter.less
routes.ts Feat: Replace antd with shadcn and delete the template node. #10427 (#11693) 2025-12-03 14:37:58 +08:00