postUpload inherited the axios instance's 30s default, so any upload taking longer than 30s was aborted client-side no matter what MAX_FILE_SIZE_MB was set to. On a ~30 Mbps uplink that caps uploads at roughly 100MB even when the deployment is configured for 200MB — and every layer underneath (reverse proxy, frontend nginx, Go handler, docreader gRPC) had already accepted the configured limit. The server only saw the request after the browser had given up, and logged "failed to upload file to MinIO: context canceled" with a sub-second latency. Four of the five postUpload call sites worked around this by passing an explicit timeout; knowledge-base file upload and chat temporary attachments did not. Derive the default from the payload so correct behaviour no longer depends on each caller remembering to opt in — an explicit config.timeout still wins. The aborted request also surfaced as "network error, please check your connection": axios timeouts arrive without error.response, so they landed in the same branch as an unreachable server and sent people chasing a network problem that did not exist. Report the two separately. |
||
|---|---|---|
| .. | ||
| public | ||
| scripts | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| docker-entrypoint.sh | ||
| embed.html | ||
| env.d.ts | ||
| index.html | ||
| nginx-api-proxy.conf | ||
| nginx-http.conf | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| package.json.md5 | ||
| pnpm-workspace.yaml | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||