[Tickets #325] NEW: MIME types of uploaded attachment files

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Jun 22 12:51:14 PDT 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

-Ticket 325
-Queue: IMP
-Created By: 


>From gereke at thomasgereke.de (Tue Jun 22 12:51:14 2004):
1.
It seems that MIME types of attachments are first taken from the client.
This is not optimal I think: with Firefox the MIME type changes after
downloading files with wrong types. Example: download PDF file with MIME
type 'x-application/octetstream'. Upload another PDF file as attachment to
Imp. Its MIME type will be 'x-application/octetstream'. So it cannot be
displayed like a PDF.

2.
The fileinfo output is preferred over the mapping by extension when
searching for MIME types. This may be ok - but fileinfo returns MIME types
which are unexpected to Imp/Horde. For example: c files are returned as
'text/x-c; charset: us-ascii'. The MIME handlers do not cut the charset
prefix, so the file isn't displayed by preview with enscript but offered to
download.
I think on text files, it will be preferrable to take the file extension
instead of the fileinfo answer as this is not accurate anyway.

I'm using
    * Horde: 3.0-cvs
    * Imp: 4.0-cvs
    * Ingo: 1.0-cvs
    * Turba: 2.0-cvs
from 06/16/2004.
And
  PHP Version 4.3.7
  Apache/2.0.49
  pecl fileinfo 0.2
  file 4.09





http://bugs.horde.org/details.php?id=325

-- 


More information about the bugs mailing list