article-images
Upload an image for embedding in an article figure
Changed onAccepts JPEG, PNG, or WebP up to 5 MB. The image is re-encoded server-side (downscaled to at most 2000px on the longest side, lossy WebP, metadata stripped) and stored under a content-addressed key.
post/api/user/article-images
Request
- The document declares no server URL.
- Authnone declared
Request body multipart/form-data
Upload Image Form required
Documentation-only shape of the multipart upload body; the handler reads the file part via axum::extract::Multipart.
file, string binary required
Response
Image stored
Uploaded Image Response required
byte_size, integer required
Stored (re-encoded) size in bytes.
height, integer required
storage_key, string required
url, string required
First-party URL to embed in the ::figure{} directive.
width, integer required
Changes
- info
endpoint added
- info