When opening a direct link to an Attachment Links node path in Internet Explorer (as in copy/pasting the URL http://site.com/node/120/attachment into the address bar, or clicking the link in an email), the file is not downloaded and I receive a warning message:
Internet Explorer cannot download attachment from [site].
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
Clicking the link in page _does_ trigger the download just fine, however. This happens in IE6 and IE7. Have not tested IE8 for this behavior.
Comment | File | Size | Author |
---|---|---|---|
#1 | attachment_links_iefix.patch | 618 bytes | vinmassaro |
Comments
Comment #1
vinmassaro CreditAttribution: vinmassaro commentedHad a chance to do some digging and found this: http://drupal.org/node/163298
Added the following lines to attachment_links.module and direct linking to Attachment Links paths works fine in IE now:
$headers[] = 'Expires: 0';
$headers[] = 'Cache-Control: private';
$headers[] = 'Pragma: cache';
Patch attached.
Comment #2
Todd Nienkerk CreditAttribution: Todd Nienkerk commentedCommitted patch to 6.x branch (6.x-1.x.dev). Will issue a 6.x-1.1 release soon.
Comment #3
Todd Nienkerk CreditAttribution: Todd Nienkerk commentedVersion 6.x-1.1 released.