What is a MIME type?
In short
- A MIME type is a short label, such as application/pdf or image/png, that tells the browser what kind of file it is receiving.
- It decides whether the browser shows the file or downloads it.
- A wrong MIME type is why a file sometimes downloads when you expected it to open.
A MIME type, also called a content type, is the label a server attaches to a file so the browser knows how to handle it. application/pdf tells the browser to render a document, image/png tells it to show a picture, and text/html tells it to display a page. The browser trusts this header more than the file extension. When the header is right the file behaves as expected, and when it is wrong a PDF can download as an unnamed blob instead of opening.
The label decides whether a shared file opens in the browser or lands in the downloads folder. NudgeHost sets the correct MIME type for each upload. A document you upload to NudgeHost as a PDF opens inline. The recipient can then read the PDF right in the browser without a download step. A page served as text/html renders as a page, while a file the browser cannot display is offered as a download.
Most people never think about MIME types, and they should not need to. The subject only comes up when a file misbehaves, and the usual cause is a host sending the wrong type. Hosting on NudgeHost is free, and you can upload from a phone or a laptop without installing anything.
Related terms
Frequently asked questions
Why does my file download instead of opening?
Either the browser cannot show that type inline, or the host sent the wrong MIME type. NudgeHost sets the correct type, so any file that can open inline does.
Can I force a file to download rather than open?
Yes. A download option sits alongside inline viewing, and the link can present the file as a download when you want that.
Is a MIME type the same as a file extension?
They are related but separate. The extension is part of the filename, and the MIME type is the header the server sends. The browser trusts the header.
Related tools
Other things you can do on NudgeHost.
Put it into practice.
Drop a file and get a shareable link in seconds. Free, no card needed.