ok we have worked out a kinda of fix solution ... basically excel and
docs work fine now and pdfs force you to save/download them one thing we
also noticed is that if you click on download in the new window for pdfs
that it actually opens correctly instead of forcing you to save. we have
to look more into how that is generated but any suggestions / input
welcome. if you would like to try it out i have attached a patch for svn
version 368
-Chris
Chris Richardson wrote:
Hey guys i wrote a little while back about this and I was wondering if
anyone had any ideas on this we are working on it but haven't found a
decent solution. Has anyone else ran into this and found a solution?
problem is when there is an attachment of a pdf when you click on the
link next to the paper clip it opens a new window but it si the
content of your inbox and only way you can open it is by right
clicking and saving target as.
our env is php5, roundcube svn 367and IE 6 thanks guys
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this information
by persons or entities other than the intended recipient is prohibited.
If you received this in error, please contact the sender and delete this
material from any computer.
In accordance with industry regulations, all messages are retained and
are subject to monitoring.
This message has been scanned for viruses and dangerous content and is
believed to be clean.
Securities offered through Cantella & Co., Inc., Member NASD/SIPC.
Home Office: 2 Oliver Street, 11th Floor, Boston, MA 02109
Telephone: (617)521-8630
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this information
by persons or entities other than the intended recipient is prohibited.
If you received this in error, please contact the sender and delete this
material from any computer.
In accordance with industry regulations, all messages are retained and are subject to monitoring.
This message has been scanned for viruses and dangerous content and is believed to be clean.
Securities offered through Cantella & Co., Inc., Member NASD/SIPC.
Home Office: 2 Oliver Street, 11th Floor, Boston, MA 02109
Telephone: (617)521-8630
Index: program/js/app.js
===================================================================
--- program/js/app.js (revision 11)
+++ program/js/app.js (revision 13)
@@ -632,7 +632,7 @@
// open attachment in frame if it's of a supported mimetype
if (this.env.uid && props.mimetype && find_in_array(props.mimetype, this.mimetypes)>=0)
{
- this.attachment_win = window.open(this.env.comm_path+'&_action=get'+url+'&_frame=1', 'rcubemailattachment');
+ this.attachment_win = window.open(this.env.comm_path+'&_action=get&'+qstring+'&_frame=1', 'rcubemailattachment');
if (this.attachment_win)
{
setTimeout(this.ref+'.attachment_win.focus()', 10);
@@ -3041,6 +3041,7 @@
var querystring = query ? '&'+query : '';
location.href = this.env.comm_path+'&_action='+action+querystring;
+
};
Index: program/steps/mail/get.inc
===================================================================
--- program/steps/mail/get.inc (revision 11)
+++ program/steps/mail/get.inc (revision 13)
@@ -63,13 +63,19 @@
$mimetype = sprintf('%s/%s', $ctype_primary, $ctype_secondary);
$filename = $part->d_parameters['filename'] ? $part->d_parameters['filename'] : $part->ctype_parameters['name'];
+/*
+echo "<br><br><br>cprim $ctype_primary csec $ctype_secondary mimetype $mimetype filename $filename";
+$a = rcube_imap::decode_mime_string($filename);
+echo "**$a**";
+die;
+*/
// send correct headers for content type and length
if ($_GET['_download'])
{
// send download headers
header("Content-Type: application/octet-stream");
- header(sprintf('Content-Disposition: attachment; filename="%s"',
- $filename ? rcube_imap::decode_mime_string($filename) : "roundcube.$ctype_secondary"));
+ header(sprintf('Content-Disposition: inline; filename="%s"',
+ $filename ? rcube_imap::decode_mime_string($filename) : "roundcube".$ctype_secondary));
}
else
{