The MIME type
MIME (Multipurepose Internet Mail Extensions multipurpose Internet Mail Extensions | Internet media type) is a kind of used to represent the document, file, byte stream properties and format standards; Defined and standardized in IETF RFC 6838M
MIME specifies symbolic messages used to represent a wide variety of data types. In addition, the MIME framework is used in the HTTP protocol, and the standard is extended to include Internet media types
MIME types are often used in browsers to determine how urls should be processed. Using the correct MIME type in HTTP response headers is important for processing files correctly. However, MIME types are not the only way to convey information about document types
grammar
0x01 Generic structure
type/subtype
Copy the code
Spaces are not allowed; Case insensitive
0x02 Type Independent type
Text files have no specific subtype; text/plain is used
Binaries have no specific or known subtype, use application/octet-stream
0 x02 Multipart type
multipart/form-data
multipart/byteranges
Copy the code
The Multipart type represents the type of file type of the subdivided domain, corresponding to different MIME types; Is a representation of compound files
Multipart /form-data is used to connect HTML Forms and POST methods; Multipart/Byteranges sends a subset of the entire file using the status code 206 (Partial Content)
Reference