[Zope-dev] IE and Zope MIME type handling

2001-10-22 Thread Casey Duncan
Problem: Getting Zope to properly detect MIME types of posted files The current solution is to try the following methods: 1. See if the browser specified a type and if so, use it. 2. See if the file extension can be recognized and derive a mime-type from it 3. Do some inspection of the file data

Re: [Zope-dev] IE and Zope MIME type handling

2001-10-22 Thread Paul Erickson
I agree with solution #2. When I upload a .xls file from Mozilla on Linux, it also says that it is application/octet-stream. Even more annoying: Netscape 4.7.x says that it is "application/vnd.ms-excel", while Konqueror says "application/ms-excel" for the same file. For sites that want to e

Re: [Zope-dev] IE and Zope MIME type handling

2001-10-22 Thread Sidnei da Silva
It is possible, as far as i know, to use the unix command "file -bi " and parse the returned result. It works very fine, but, unfortunatedly ;^)) just on Unix/Linux/*nix. Have read this on the [Zope] list and tested myself. Em Monday 22 October 2001 16:33, Casey Duncan escreveu: > Problem: G

Re: [Zope-dev] IE and Zope MIME type handling

2001-10-23 Thread Oliver Bleutgen
> It is possible, as far as i know, to use the unix command "file -bi > " and parse the returned result. It works very fine, but, > unfortunatedly ;^)) just on Unix/Linux/*nix. Have read this on the [Zope] > list and tested myself. This is not quite correct, http://sources.redhat.com/cygwin/ At