Hi Henrik,
Try changing file 'environment/functions/files.php', line 409 onwards, from:
function download_from_repository($id, $type, $name, $force_download = false) {
if (FileRepository::getBackend() instanceof FileRepository_Backend_FileSystem) {
$path = FileRepository::getBackend()->getFilePath($id);
if (is_file($path)) {
// this method allows downloading big files without exhausting php's memory
return download_file($path, $type, $name, $force_download);
}
} else {
$content = FileRepository::getBackend()->getFileContent($id);
return download_contents($content, $type, $name, strlen($content), $force_download);
}
}
to:
function download_from_repository($id, $type, $name, $force_download = false) {
if (FileRepository::getBackend() instanceof FileRepository_Backend_FileSystem) {
$path = FileRepository::getBackend()->getFilePath($id);
if (is_file($path)) {
// this method allows downloading big files without exhausting php's memory
return download_file($path, $type, $name, $force_download);
}
}
$content = FileRepository::getBackend()->getFileContent($id);
return download_contents($content, $type, $name, strlen($content), $force_download);
}