BUG: Upload POST /part uses upload.single('file') but nginx strips Content-Type for multipart — multer may misparse #74
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixed —
services/web-ui/nginx.confnow setsproxy_set_header Content-Type $content_typein the/api/block so multer receives the full multipart boundary. Verified in currentmain.Fix Plan — #74 nginx strips Content-Type for multipart uploads
Root cause: Multer's memoryStorage needs original Content-Type: multipart/form-data; boundary=... header. If nginx normalizes headers, multer fails with MulterError: Unexpected field.
Fix:
Files: nginx.conf, src/routes/upload.js
Effort: ~30min
**Priority: P2 — upload reliability