3 Commits

Author SHA1 Message Date
stringadmin df5ea8c65e fix: harden launch server runtime and public config 2026-06-04 18:58:45 +08:00
stringadmin 035190420f fix(oss): add binary upload route + base64 fallback fix + MIME types
- Add /oss/upload-binary route using busboy for FormData multipart uploads
- Fix parseUploadPayload base64 fallback: strip data:xxx;base64 prefix
  instead of using entire rawData string as base64 (caused 44-byte
  corrupt files when DATA_URL_PATTERN regex did not match)
- Add image/avif, image/heic, image/heif to MIME_EXTENSIONS

Root cause of ecommerce 502: base64 dataUrl not matching regex pattern
caused server to store corrupt 44-byte files on OSS, DashScope could
not read them and returned "image format is illegal" error.
2026-06-02 16:20:52 +08:00
stringadmin 56955e32f7 Initial commit: OmniAI backend server 2026-06-02 13:14:10 +08:00