Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>MIME types are relatively flexible when it comes to creating new ones, in the sense that you can specify that a file is of type <code>application/x-my-file-type</code> and that's perfectly valid. As such, you should be able to specify, either through configuration files or scripts, that such MIME-type data will be sent with the file, but only on <strong>your</strong> host. Getting other sites to recognize your format will depend on each individual webmaster's (or hosting company's) decision.</p> <p>Of course, that may not even matter to you. So, in short, <strong>YES</strong> you can define your own MIME-type (as long as you follow the rules), and <strong>YES</strong> you can configure <strong>your</strong> server to throw that MIME-type around. However, getting the rest of the world in compliance is the sticky-tricky part.</p> <p>EDIT: To answer again in a different way: <strong>No, it is <em>not</em> difficult</strong>, you should be able to either do it yourself or have basic support walk you through it, depending on your implementation. It shouldn't cost you any money unless your host sucks, although this is my opinion and not necessarily a fact.</p> <p><strong>EDIT 2: To address your comment to this question</strong> (since the comment box doesn't have enough room):</p> <p>If you are using Apache, you can create (or modify) an <code>.htaccess</code> file, which is very easy. For this example, say your file type is <code>application/x-foo-file</code> and the files are named with a <code>.foo</code> extension, you would need to add this line: </p> <pre><code>AddType application/x-foo-file foo. </code></pre> <p>If you aren't using Apache, you will need to look up your specific steps in whatever server you are using, although it is possible to use a scripting language (PHP, ASP, etc) to serve your files with the correct MIME headers. </p> <p>PHP: <code>header('Content-Type: application/x-foo-file');</code> </p> <p>ASP: <code>Response.ContentType="application/x-foo-file"</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload