Try to echo:
$Attachments["FilePath"].$AttachmentID.".".$Attachments["ContentType"]
and $Attachments["FileSize"]
A .part file is a file that has started to download, but no finished.
You have set time limit.
Try downloding a very small file, and see if there might be a size problem.
For some reason the transfer is broken.
Try to remove the @
from @readfile(
and see if you get any more error report.
Put the display test here:
case "jpg": $ctype="image/jpg"; break;
default: $ctype="application/force-download";
}
$Attachments["FilePath"].$AttachmentID.".".$Attachments["ContentType"]
echo '<br>';
echo $Attachments["FileSize"];
exit();
header("Pragma: public");
header("Expires: 0");