5 min read
2026-02-26
When configuring Nginx or Apache, it is necessary to map file extensions to MIME types in order to correctly serve content.
When implementing file uploads, check the MIME type to prevent dangerous files from being uploaded.
| Operation | Content-Type |
|---|---|
| Sending JSON | application/json |
| Upload file | multipart/form-data |
| Download PDF | application/pdf |
| Submit form | application/x-www-form-urlencoded |
Each email attachment is accompanied by a MIME type. The wrong type may cause problems opening the file.
When dynamically generating files (PDF, Excel, CSV), you must specify the correct MIME type and Content-Disposition header.
CDNs use MIME types to define content caching and compression strategies.
The PWA manifest (`manifest.json`) must be served with the type `application/manifest+json`.
See also: HTTP status codes, Cron generator, JSON Formatter