Documentation Index
Fetch the complete documentation index at: https://docs.letmepost.dev/llms.txt
Use this file to discover all available pages before exploring further.
What it checks
For images:mimeType === "image/jpeg". JPEG only, no exceptions.
For videos: mimeType ∈ { video/mp4, video/quicktime }.
The mime is sniffed from the resolved bytes, not trusted from the file extension.
Why JPEG-only for images
Meta’s Instagram container endpoint will accept aimage/png URL but produces a code 100, error subcode 2207003 (or similar) at container creation time. Same for WebP, HEIC, GIF. The only mime IG actually publishes through the photo path is JPEG.
Catching this locally with a clear rule + remediation saves you the round-trip and the opaque error.
Failure response
Remediation
Re-encode to JPEG:Upstream documentation
The 2207003 / 2207004 subcode family is undocumented in Meta’s developer docs but consistently observable. The empirical mapping is what we encode.Related
instagram.media.image_size_maxinstagram.media.video_size_maxthreads.media.mime_allowed— Threads is more permissive (jpeg/png/webp).