Files uploaded with an uppercase or mixed-case extension (e.g. `123.PDF`, `report.Docx`) failed to be parsed because the readFile worker matches the extension against a lowercase switch (`'pdf'`, `'docx'`, ...), so an uppercase suffix fell through to the default branch and threw "... is not supported". Normalize the extension to lowercase once at the lowest common entry point `readFileContentByBuffer`, instead of at each business-layer call site. This keeps business-layer behavior unchanged and covers all callers (chat upload, external url, dataset, local file) in a single place. Adds regression tests covering upper/mixed-case extensions. Fixes #6996 Co-authored-by: DadaVinqi <DadaVinqi@users.noreply.github.com>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .agents | Loading commit data... | |
| .github | Loading commit data... | |
| .husky | Loading commit data... | |
| .vscode | Loading commit data... | |
| bin | Loading commit data... | |
| deploy | Loading commit data... | |
| document | Loading commit data... | |
| packages | Loading commit data... | |
| pro @ 38be4a68 | ||
| projects | Loading commit data... | |
| scripts | Loading commit data... | |
| sdk | Loading commit data... | |
| test | Loading commit data... | |
| .dockerignore | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .gitmodules | Loading commit data... | |
| .imgbotconfig | Loading commit data... | |
| .npmrc | Loading commit data... | |
| .prettierignore | Loading commit data... | |
| .prettierrc.js | Loading commit data... | |
| AGENTS.md | Loading commit data... | |
| LICENSE | Loading commit data... | |
| Makefile | Loading commit data... | |
| README.md | Loading commit data... | |
| README_en.md | Loading commit data... | |
| README_id.md | Loading commit data... | |
| README_ja.md | Loading commit data... | |
| README_th.md | Loading commit data... | |
| README_vi.md | Loading commit data... | |
| SECURITY.md | Loading commit data... | |
| dev.md | Loading commit data... | |
| eslint.config.mjs | Loading commit data... | |
| lint-staged.config.mjs | Loading commit data... | |
| package.json | Loading commit data... | |
| pnpm-lock.yaml | Loading commit data... | |
| pnpm-workspace.yaml | Loading commit data... | |
| tsconfig.json | Loading commit data... | |
| turbo.json | Loading commit data... | |
| vitest.config.mts | Loading commit data... |