Skip to main content

What it checks

For images: mimeType ∈ { image/jpeg, image/png, image/webp }. For videos: mimeType ∈ { video/mp4, video/quicktime }. The mime is sniffed from the resolved bytes, not trusted from the file extension.

Why

Meta’s Threads create-container endpoint rejects HEIC, BMP, AVI, etc. with opaque code 100 errors. Catching the mime mismatch locally surfaces a useful rule + remediation.

Failure response

Remediation

Re-encode the asset: