A lot of people complain about issues with attachments. I too experienced the zero byte file problem when I tried to open a file.
There seems to be a problem in the scp/attachment.php file. There are two versions of this file, be aware to take the one in the scp subdir.
I replaced a few lines of code:
// ORIGINAL: $file=rtrim($cfg->getUploadDir(),'/')."/$month/$key".'_'.$filename;
// my new version
$file=rtrim($cfg->getUploadDir(),'/').'/'.$month.'/'.$key.'_'.$filename;
// added { } here!!
if(!file_exists($file)) {
$file=rtrim($cfg->getUploadDir(),'/')."/$key".'_'.$filename;
}
That's all. Everything works as expected after these changes.
Only copy code if you understand and trust it.
Best regards,
Jan-Willem Arnold