Files
zpan/server
saltboandCopilot a61bb73a72 feat(ihost): support JSON base64 upload for uPic compatibility
uPic sends images as base64-encoded JSON: {"file": "iVBORw0K..."}
with Content-Type: application/json, NOT multipart/form-data.

Refactor POST /images to accept both formats:
- multipart/form-data: PicGo, ShareX (file in form field)
- application/json: uPic (base64 string in file field)

Also add magic-byte MIME detection (PNG/JPEG/GIF/WEBP headers)
for when tools don't provide MIME type.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-21 14:54:24 -04:00
..