Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LetoDMS download file problem, doc, xls. jpg
#16
I solved the problem in the version 3.0.0-RC3 by changing op/op.Download.php approximately lline 61 to 71 this way:

/***Original***/
//header("Content-Type: application/force-download; name=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($dms->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($dms->contentDir . $content->getPath());


*** change to ***

header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($dms->contentDir . $content->getPath() ));
header("Content-Disposition: attachment; filename=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
header("Content-Type: " . $content->getMimeType());
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
ob_clean();
flush();
readfile($dms->contentDir . $content->getPath());

********************************************************

I hope that help to someone.

Best Regards!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)