00 Votes

MIME Type of INI Files

Question by Guest | 2015-03-16 at 23:09

Does someone know, what kind of MIME Type an INI File is?

Apparently, this type of configuration file is indeed a pure text file format, which would justify a MIME Type of "text/ini", as it is the case with other text file formats such as "text/html" or "text/css".

On the other hand, compared to "text/html" and "text/css", the type "text/ini" seems not to be listed officially. So, should I rather use "text/plain for an INI File or does someone have another better idea?

4Best Answer4 Votes

Since "text/ini" is not an official MIME type is, I would definitely tend to "text/plain".

That there are defined the MIME Types "text/html" and "text/css" while "text/ini" is not defined, despite all of this file format types are plain text files, is probably because it is very important to distinguish between HTML and CSS (for example in browser or e-mail applications) while other text files are just displayed as text without interpreting them for example as HTML. This would be another argument for recommending "text/plain" as MIME Type of an INI file.

Another thing is, that files with an INI structure, are often also saved with the file extension .txt, .cfg or .conf, so that plain text would be more justified to include all of this variations.
Last update on 2021-05-13 | Created on 2015-03-17

ReplyPositive Negative

Related Topics

PHP: Upload of large Files

Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.


Ask your own question or write your own article on askingbox.com. That’s how it’s done.