[WSG] Correct MIME types for non-standard file formats

2006-01-23 Thread Peter Levan
Title: Correct MIME types for non-standard file formats






Is there a good reference site that lists correct MIME types for various file formats? or is there a general rule to follow for non-standard file types?

Specifically I'd like to know what MIME type should be used for SPSS portable (.por) files and in the past I've seen many variants for some file types (eg. MS office file types). Currently we are sending the MIME type application/por which I am fairly certain is incorrect, but it does give the browser behaviour that we want. 

Without the MIME type set the file displays like a text file in the browser window, however we want the download requestor to appear when accessing a file of this type as the file is useless when viewed as straight text as it is a data file designed to be used with SPSS.

__


Peter Levan 

Web Manager, Australian Institute of Criminology

GPO Box 2944

Canberra ACT 2601


Tel: (02) 6260 9257

Fax: (02) 6260 9299 

Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

Web site: http://www.aic.gov.au/ 






Re: [WSG] Correct MIME types for non-standard file formats

2006-01-23 Thread Geoff Deering

Peter Levan wrote:

Is there a good reference site that lists correct MIME types for 
various file formats? or is there a general rule to follow for 
non-standard file types?


Specifically I'd like to know what MIME type should be used for SPSS 
portable (.por) files and in the past I've seen many variants for some 
file types (eg. MS office file types).  Currently we are sending the 
MIME type application/por which I am fairly certain is incorrect, but 
it does give the browser behaviour that we want. 

Without the MIME type set the file displays like a text file in the 
browser window, however we want the download requestor to appear when 
accessing a file of this type as the file is useless when viewed as 
straight text as it is a data file designed to be used with SPSS.


__

Peter Levan   



Have you tried

http://www.google.com.au/search?hl=enq=MIME+type+SPSSbtnG=Google+Searchmeta=

Geoff.
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] Correct MIME types for non-standard file formats

2006-01-23 Thread Andrew Krespanis
On 1/24/06, Peter Levan [EMAIL PROTECTED] wrote:
 Without the MIME type set the file displays like a text file in the browser
 window, however we want the download requestor to appear when accessing a
 file of this type as the file is useless when viewed as straight text as it
 is a data file designed to be used with SPSS.

The most common way of forcing a download is to use the .exe mimetype
-- 'application/octet-stream'

If you're using Apache, you can place the following in the .htaccess
file for the folder holding the .por files. This will ensure that the
files are always downloaded, even if the files location is entered via
the address bar. (the alternative option being store the files above
the root directory and only allow the download script to access them)

Files *.por
ForceType application/octet-stream
/Files

HTH,

Andrew.
--
http://leftjustified.net/
N���.�Ȩ�X���+��i��n�Z�֫v�+��h��y�m�쵩�j�l��.f���.�ץ�w�q(��b��(��,�)උazX����)��

Re: [WSG] Correct MIME types for non-standard file formats

2006-01-23 Thread Lachlan Hunt

Peter Levan wrote:

Is there a good reference site that lists correct MIME types for various
file formats?


http://www.iana.org/assignments/media-types/


or is there a general rule to follow for non-standard file types?


There is the x- prefix which is added to proprietary/custom MIME types, 
but you you should generally try to find one which is documented either 
with IANA or by the vendor of the file type, instead of making up your own.



Specifically I'd like to know what MIME type should be used for SPSS
portable (.por) files


If you can't find an official one in IANA or find one documented by the 
software vendor, then you should use application/octet-stream for 
generic binary files.


--
Lachlan Hunt
http://lachy.id.au/

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



RE: [WSG] Correct MIME types for non-standard file formats

2006-01-23 Thread Peter Levan
Thanks to everyone for their help.  This gives me plenty to go on.
__

Peter Levan
Web Manager, Australian Institute of Criminology
GPO Box 2944
Canberra ACT 2601

Tel: (02) 6260 9257
Fax: (02) 6260 9299 
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Web site: http://www.aic.gov.au/ 

 

-Original Message-
From: Lachlan Hunt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 24 January 2006 3:45 PM
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] Correct MIME types for non-standard file formats

Peter Levan wrote:
 Is there a good reference site that lists correct MIME types for
various
 file formats?

http://www.iana.org/assignments/media-types/

 or is there a general rule to follow for non-standard file types?

There is the x- prefix which is added to proprietary/custom MIME types, 
but you you should generally try to find one which is documented either 
with IANA or by the vendor of the file type, instead of making up your
own.

 Specifically I'd like to know what MIME type should be used for SPSS
 portable (.por) files

If you can't find an official one in IANA or find one documented by the 
software vendor, then you should use application/octet-stream for 
generic binary files.

-- 
Lachlan Hunt
http://lachy.id.au/

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**