MIME
Updated 2026-07-30
Summary
Multipurpose Internet Mail Extensions (MIME) is a standard that extends the format of email messages to support text in character sets other than ASCII, as well as attachments of audio, video, images, and application programs. Message bodies may consist of multiple parts, and header information may …
Definition
Multipurpose Internet Mail Extensions, an Internet standard media type identifier, formatted as "type/subtype" (e.g., text/html, image/png), used to identify the format and processing method of data. Scaffold use: unify the data format language. Enable sender and receiver to reach a consensus on "what kind of data this is", ensuring correct parsing and processing.
Introduction
How to use
Unify the data format language. Enable sender and receiver to reach a consensus on "what kind of data this is", ensuring correct parsing and processing.
Mechanism
MIME uses a two-level label of "type/subtype" (e.g., text/html, image/png, application/json) to establish a unified namespace for data formats. The sender declares the type in the protocol header (HTTP Content-Type, email header), and the receiver selects the parsing and processing method accordingly, making "what kind of data this is" a language that both parties can agree on.
Practice
In progress 0/5Practice this model in one real situation:
Cases
- When the browser receives Content-Type: image/png, it uses an image decoder to render; if the backend returns JSON but incorrectly labels it as text/html, the frontend may mistakenly treat it as text and fail to parse.
Common pitfalls
- Treating MIME types as equivalent to file extensions (they may actually be inconsistent); making security judgments based on extensions rather than MIME types, which is easy to bypass; misspelling subtypes or omitting charset parameters (e.g., charset=utf-8).
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/MIMEverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS