[imp] Viewable attachment in compose view/Content-Disposition

Michael M Slusarz slusarz at horde.org
Mon Mar 31 03:24:01 UTC 2014


Quoting Jasper Olbrich <Jasper.Olbrich at students.uni-marburg.de>:

> 1: Where can I find the code that decides which attachments are  
> hyperlinked after uploading and which are not? What is the rationale  
> for the current behavior?

mime_drivers.php.  A link will only exist if a MIME viewer is present  
for the MIME type of that attachment.  (It is possible that the  
browser has provided no indication of the MIME type, and the MIME  
magic code can't auto-determine, in which case the attachment will not  
be viewable).

> 2: If I click on the link to a viewable attachment, it is sent with  
> Content-Dispostition: inline, which leads to unexpected behavior

I can't reproduce this.  At least with an image attachment.

michael
___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list