HFS: Tipi MIME

From rejetto wiki
Jump to navigation Jump to search

Cos'è un tipo MIME ?

Un tipo MIME è, in effetti, un'informazione che descrive il tipo di documento inviato dal web server.
Poichè un web server può fornire vari tipi di documento, il tuo browser necessita di un sistema per conoscere lo specifico tipo di documento prima di poterlo visualizzare.

Non è sufficiente l'estensione del file ?

Sometimes file extension is not enough. For example, In the web environment, when a PHP script generates a jpeg image, you get an URL with a .php extension. However, the browser knows that the content represents a jpeg image because it gets this information in the http header as a MIME type.