Nope, that's not it. I just tried the download from home with max_memory set to unlimited and I only got 5.2MB downloaded (of 8.71MB)
I noticed this in my server error log:
PHP Fatal error: Maximum execution time of 120 seconds exceeded in W:\\www\\activeCollab\\environment\\functions\\files.php on line 332, referer: http://collab.mgarchitects.com/activeCollab/index.php?c=document&a=index&active_project=27
Could it be related?
PHP Fatal error: Maximum execution time of 120 seconds exceeded in W:\\www\\activeCollab\\environment\\functions\\files.php on line 332, referer: http://collab.mgarchitects.com/activeCollab/index.php?c=document&a=index&active_project=27
Could it be related?
Ilija, I'm not sure what's going on but my clients are getting corrupted zip files when they download from activecollab. Any ideas what could cause this?
I tried it myself locally...I typically use firefox and I have not had a problem. I just tried it with Internet Explorer 7 and the zip was corrupted.
Ideas?
Ideas?
Sorry, but you'll have to be a little more explicit for me.
Do I delete (or comment) the entire section between:
/**
* Use content (from file, from database, other source...) and pass it to the browser as a file
*
* @param string $content
* @param string $type MIME type
* @param string $name File name
* @param integer $size File size
* @param boolean $force_download Send Content-Disposition: attachment to force save dialog
* @return boolean
*/
function download_contents($content, $type, $name, $size, $force_download = false) {
if(connection_status() != 0) return false; // check connection
if($force_download) {
header("Cache-Control: public");
} else {
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
} // if
header("Expires: " . gmdate("D, d M Y H:i:s", mktime(date("H") + 2, date("i"), date("s"), date("m"), date("d"), date("Y"))) . " GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-Type: $type");
header("Content-Length: " . (string) $size);
// Prepare disposition
$disposition = $force_download ? 'attachment' : 'inline';
header("Content-Disposition: $disposition; filename=\"" . $name) . "\"";
header("Content-Transfer-Encoding: binary");
print $content;
return((connection_status() == 0) && !connection_aborted());
} // download_contents
/**
And replace it with the text in your message above?
thanks,
Eric
Do I delete (or comment) the entire section between:
/**
* Use content (from file, from database, other source...) and pass it to the browser as a file
*
* @param string $content
* @param string $type MIME type
* @param string $name File name
* @param integer $size File size
* @param boolean $force_download Send Content-Disposition: attachment to force save dialog
* @return boolean
*/
function download_contents($content, $type, $name, $size, $force_download = false) {
if(connection_status() != 0) return false; // check connection
if($force_download) {
header("Cache-Control: public");
} else {
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
} // if
header("Expires: " . gmdate("D, d M Y H:i:s", mktime(date("H") + 2, date("i"), date("s"), date("m"), date("d"), date("Y"))) . " GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-Type: $type");
header("Content-Length: " . (string) $size);
// Prepare disposition
$disposition = $force_download ? 'attachment' : 'inline';
header("Content-Disposition: $disposition; filename=\"" . $name) . "\"";
header("Content-Transfer-Encoding: binary");
print $content;
return((connection_status() == 0) && !connection_aborted());
} // download_contents
/**
And replace it with the text in your message above?
thanks,
Eric
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.



