This fix worked for me, but I had to add the line ...
header("Content-Type: " . $content->getMimeType());
after
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
to get Firefox 3.6.3 to select the correct application.
Ian T.
I forgot to mention - "View online" gives me a blank page with *.png files.
header("Content-Type: " . $content->getMimeType());
after
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
to get Firefox 3.6.3 to select the correct application.
Ian T.
(06-21-2010, 05:06 PM)nmf Wrote: I also had got this problem.
Luckily, I solved it by changing below script:
****** original **********
header("Content-Type: application/force-download; name=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($settings->_contentDir . $content->getPath() ));
header("Content-Disposition: attachment; filename=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
//header("Expires: 0");
//header("Content-Type: " . $content->getMimeType());
//header("Cache-Control: no-cache, must-revalidate");
header("Cache-Control: must-revalidate");
//header("Pragma: no-cache");
readfile($settings->_contentDir . $content->getPath());
********* change to ****************
header('Content-Description: File Transfer');
header("Content-Type: application/application/octet-stream; name=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
header("Content-Disposition: attachment; filename=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header("Content-Length: " . filesize($settings->_contentDir . $content->getPath() ));
ob_clean();
flush();
readfile($settings->_contentDir . $content->getPath());
***********************************
you may try it
I forgot to mention - "View online" gives me a blank page with *.png files.
(06-25-2010, 01:02 PM)bulkoboy Wrote: This fix worked for me, but I had to add the line ...
header("Content-Type: " . $content->getMimeType());
after
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
to get Firefox 3.6.3 to select the correct application.
Ian T.