6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/12/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#325] MIME types of uploaded attachment files
*
Your Email Address
*
Spam protection
Enter the letters below:
__..___. .. ..__ (__ [__ |_/ |\/|[__) .__)[___| \| || \
Comment
> 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 > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers