ragflow/web
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
..
.husky
.storybook feat(storybook): Storybook with Calendar and Modal components #9869 (#10626) 2025-10-17 09:58:52 +08:00
public Feat: If a query variable in a data manipulation operator is deleted, a warning message should be displayed to the user. #10427 #11255 (#11384) 2025-11-19 19:10:57 +08:00
src Feat: detect docx support via header-byte inspection (#11731) 2025-12-04 13:41:18 +08:00
.env Remove 'DID YOU KNOW', when start front-end (#10853) 2025-10-28 19:40:58 +08:00
.eslintrc.js Feat: Display AvatarUpload and RAGFlowAvatar in Storybook #9914 (#9920) 2025-09-04 18:02:17 +08:00
.gitignore Feat: Use storybook to display public components. #9914 (#9915) 2025-09-04 17:03:36 +08:00
.npmrc
.prettierignore
.prettierrc
.umirc.ts Feat: Admin UI (#10857) 2025-10-28 22:25:43 +08:00
externals.d.ts
jest-setup.ts
jest.config.ts
package-lock.json Feature:Add voice dialogue functionality to the agent application (#11668) 2025-12-02 19:39:43 +08:00
package.json Feature:Add voice dialogue functionality to the agent application (#11668) 2025-12-02 19:39:43 +08:00
postcss.config.js Feat: Use storybook to display public components. #9914 (#9915) 2025-09-04 17:03:36 +08:00
README.md Update Admin UI user guide docs (#11183) 2025-11-11 20:29:20 +08:00
tailwind.config.js Add task executor bar chart, add system version string (#11155) 2025-11-11 15:20:37 +08:00
tailwind.css Add task executor bar chart, add system version string (#11155) 2025-11-11 15:20:37 +08:00
tsconfig.json
typings.d.ts

Install front-end dependencies

npm install

Launch front-end

npm run dev

The following output confirms a successful launch of the system:

Login to RAGFlow web UI

Open your browser and navigate to:

http://localhost:9222 or http://[YOUR_MACHINE_IP]:9222

Replace [YOUR_MACHINE_IP] with your actual machine IP address (e.g., http://192.168.1.49:9222).

Login to RAGFlow web admin UI

Open your browser and navigate to:

http://localhost:9222/admin or http://[YOUR_MACHINE_IP]:9222/admin

Replace [YOUR_MACHINE_IP] with your actual machine IP address (e.g., http://192.168.1.49:9222/admin).

Shutdown front-end

Ctrl + C or

kill -f "umi dev"