[imp] I.E. 6, Word and Mime-type

Michael M Slusarz slusarz at bigworm.colorado.edu
Tue Jan 27 14:11:57 PST 2004


Quoting hofsteda at ucrwcu.rwc.uc.edu:

> We're running horde cvshead (12/30). When an attachment is sent while 
> the file
> is open in Word, the file is attached as text/plain and is unreadable by word
> when downloaded.  Closing the file before attaching it corrects the problem.
> Using firebird instead of Internet Explorer works correctly.
>
>> From my testing when a word document is uploaded via a rfc 1867 form 
>> while the
> file is open IE sets the content type to application/octet-stream. If the
> document is not open the content type is set to application/msword.
>
> Is this expected behavior (since IE is messed up) or should I check my
> horde/php/mime-magic configuration?

You answered it yourself.  If IE is misreporting it, there is nothing we can do
about it since we honor what the browser tells us.  So if it says it is an
application/octet-stream, and MIME magic is enabled, we do a MIME magic scan. 
It seems reasonable that MIME magic might identify the file as text/plain, so
there is technically nothing wrong.

If you want to generate an improved MIME magic database system, that identifies
the file correctly, that would be great.  But (at least with our PHP coded
version of MIME magic) there are 5 signtures for msword (it's actually MIME
type text/vnd.ms-word) so if it is not recognzing it as a word file, it seems
likely that it really doesn't _look_ like a word file at all so improved MIME
magic detection is not going to help out any.

michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the imp mailing list