Why 415 shows up on upload routes
Avatar uploads, CSV imports, and webhook attachments often ship as application/octet-stream from habit. Gateways answer 415 Unsupported Media Type when the declared MIME does not match the bytes or the API allow list.
MIME Type Lookup filters a built-in table by extension (json, webp) or MIME substring. Columns show extension, MIME, description—static data in the tab, no file upload.
Unlike running file on a bastion, this page answers tickets that only say "they want image/png" while you stare at a .jpg on disk.
Using the lookup UI
The search box matches extension, MIME string, and localized description. Query pdf for application/pdf; query json for multiple JSON-related types—pick the exact token your contract names.
Copy the MIME column into HTTP Request headers or multipart part metadata.
When vendors disagree on edge types (some CSV variants), the API doc wins; this tool shows common defaults, not legal registry completeness.
Pair with JSON and response debugging
HTML error bodies labeled as JSON belong in the API response debugging guide first; use MIME lookup to see whether application/json was swapped for text/plain.
Non-standard labels like text/json appear in the webhook JSON guide; normalize against standard names here.
Convert assets with Image Converter when the file is WebP but headers still say JPEG.
Flow (figure)
Order: filename suffix → lookup → Content-Type or part header → trial upload via staging HTTP.
Still rejected (figure)
Persistent 415: hidden wrong extension; vendor application/vnd.* requirements; gateway MIME allow lists.
Multipart needs per-part Content-Type, not only the outer multipart/form-data boundary line.
Limits
Common dev/office types only—not the full IANA tree.
No magic-byte sniffing; renaming .png to .jpg does not change truth on the wire.
Charsets such as ; charset=utf-8 follow your API spec; not enumerated here.
FAQ
QSame as browser uploads?
ABrowsers guess MIME; manual API debugging benefits from the table.
QWhen use octet-stream?
AFallback when unknown; prefer explicit types in production.
QUpload to WoDeTool?
ANo—search only.
Worked example
1. Doc: POST /avatar, single file, image/webp.
2. Search webp in MIME Type Lookup; copy image/webp.
3. Build multipart in HTTP Request with matching part header.
4. On 415, verify filename and convert with Image Converter if needed.
5. Document the MIME line in your runbook.
Registry vs product quirks
Office Open XML often uses long application/vnd.openxmlformats-officedocument.* strings—search partial tokens like spreadsheetml when you know the doc format.
Some CDNs normalize Content-Type on the way out; your upload header and the edge header users see may differ—test with response headers in HTTP Request.
S3-style presigned uploads sometimes ignore client headers and infer type from key suffix; read the storage doc before debating MIME in Slack.
GraphQL multipart spec (graphql-multipart-request) uses explicit part maps; MIME per file still matters inside each part.
Operational habits
Keep a one-line cheat sheet per public API: allowed upload MIMEs and max bytes—link this lookup page instead of pasting twenty types into Notion.
When security asks for proof you are not executing uploaded SVG, MIME plus separate virus scan policy beats arguing from extension alone.
Log pipelines that parse Content-Type should store both raw header and normalized MIME for later forensics.
Pairs integrators mix up often
.json files almost always want application/json on the wire; text/plain appears when someone exports from a editor that does not set a media type—gateways may still accept it but your validator might not.
.yaml uploads are rare in browsers but show up in CI; application/x-yaml vs text/yaml both circulate—search yaml here then confirm against your parser library.
Raster icons for web often use image/png or image/webp; image/jpeg with an alpha channel in the file is a red flag that the extension or export preset is wrong.
application/zip for bulk imports differs from multipart/form-data carrying many files—do not copy the MIME from a zip tutorial into a form upload ticket.
Audio and video types (audio/mpeg, video/mp4) appear in CMS plugins; if your product only validates images, restrict by allow list rather than assuming octet-stream is fine.
Staging checklist before prod
Run one happy-path upload per MIME your API documents, one deliberate wrong-type file, and one extension lie (PNG bytes, .jpg name) to see whether the server sniff behaves as security expects.
Capture request and response headers in HTTP Request and attach to the change ticket so the next release compares against a known-good trace.
When WAF rules reference MIME keywords, paste the exact header string from this lookup—partial matches like json inside application/ld+json have triggered false positives in strict regex rules.
Rotate test fixtures when the lookup table updates in WoDeTool releases; stale runbooks citing deprecated types waste an entire debugging afternoon.
References
IANA media types registry defines canonical names; product docs sometimes lag—your contract still wins for integrations.
RFC 9110 describes Content-Type header semantics in HTTP semantics.
MDN documents how browsers set multipart boundaries and part headers for FormData uploads.
Handoff notes for backend owners
When you file a frontend ticket about 415, include three strings: filename on disk, MIME header you sent, and MIME the API doc demands—this lookup page is how the middle value gets chosen.
If the server returns 415 with an empty body, reproduce with HTTP Request before blaming CORS; preflight success does not guarantee upload acceptance.
Java Spring consumes and Express multer fileFilter errors often surface as 415 or 400 interchangeably; normalize the message in logs so MIME mismatches are searchable.
Mobile apps uploading from photo libraries sometimes strip extensions; convert to a known suffix locally, look up MIME here, then set the header explicitly in the native HTTP client.
Treat this page as a shared vocabulary between mobile, web, and SRE—when everyone copies the same MIME token from the table, integration calls stop cycling on terminology alone.
Bookmark the lookup during API onboarding week; it pays off the first time someone asks whether .woff2 is font/woff2 or an older alias.
Copy-paste reference
Look up the extension in MIME Type Lookup, then set the part header in your client.
POST /upload HTTP/1.1
Content-Type: multipart/form-data; boundary=----bound
------bound
Content-Disposition: form-data; name="file"; filename="avatar.webp"
Content-Type: image/webp