[imp] Attachement file problem: Explorer cannot download ... from ... : possible solution ?

Jan Schneider jan@horde.org
Fri, 14 Dec 2001 17:07:29 +0100


Zitat von Carl Provencher <Carl.Provencher@sit.ulaval.ca>:

> A major problem we have with IMP, is about attachement and IE and the a
> lot of our user use IE.
> 
> When I click on filename link, a window open and I receive this error
> message from IE:
> 	Explorer cannot download ... from ...
> 
> In a message view, I compage 2 links (filename link and download.gif
> link) from source of message frame.
> 
>   <td class="item1" width="100%"><table cellspacing="2"
> cellpadding="1"><tr valign="middle"><td><img
> src="/horde/graphics/mime/pdf.gif" height="16" width="16" border="0"
> alt="" /></td><td>2</td><td><a href="" onclick="view('113', '2',
> 'c3ecc19dfecd3117e491b31928dc2fb6'); return false;"
> onmouseout="status='';" onmouseover="status='Voir formulaire.pdf'; return
> true;">formulaire.pdf</a></td><td>application/pdf</td><td>7,68
> KB</td><td><a
> href="view.php?
Horde=ae0b6ec3d6fcab6d76b139428d719407&amp;mailbox=INBOX&amp;index=33&amp;ar
ray_index=11&amp;id=2&amp;actionID=112&amp;mime=c3ecc19dfecd3117e491b31928dc
2fb6&amp;f=/formulaire.pdf"
> onmouseout="status='';" onmouseover="status='T&eacute;l&eacute;charger
> formulaire.pdf'; return true;"><img src="/imp/graphics/download.gif"
> border="0" alt="Téléchargement" /></a></td></tr>
> I compage view.php? code in previous line and in view function
> 
> 1. With download.gif we  have this:
> ...<a
> href="view.php?
Horde=ae0b6ec3d6fcab6d76b139428d719407&amp;mailbox=INBOX&amp;index=33&amp;ar
ray_index=11&amp;id=2&amp;actionID=112&amp;mime=c3ecc19dfecd3117e491b31928dc
2fb6&amp;f=/formulaire.pdf"
> onmouseout="status='';" onmouseover="status='T&eacute;l&eacute;charger
> formulaire.pdf'; return true;"
> 
> 2. and in function view
>    
> window.open('view.php?
Horde=ae0b6ec3d6fcab6d76b139428d719407&mailbox=INBOX&index=33&array_index=11
'
> + '&id=' + part + '&actionID=' + action + '&mime=' + mime,
> '13344590773c1a1bba0824e33' + tr(part), param);
> 
> I suggest the problem occure because we find "&amp;mailbox" rather
> "&mailbox" in url ?

No, this is xhtml style and works with IE without a problem. I see that the 
link should open a PDF document. There are some problem with viewing 
attached pdf documents that haven't been addressed so far.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::