When downloading then saving the "Virtual Product" (which is a PDF file) to my desktop and try to open it, Adobe is telling me the file is corrupt.
When trying to open it directly upon using the "Download" button, Adobe opens, but then it says the file doesn't exist.
I checked all the permissions - they are fine.
Using my WsFTP, I ftped a copy of my PDF file back to my desktop to check it and it opens fine.
Upon checking the "download.php" file, I noticed that there is a bit of code that reads
Could the line "Content-type: Application/octet-stream" be corrupting my file during the downloading it as ASCII instead of binary, or is it the other way around? I'm not sure if a PDF is a binary or ASCII . . . .// Now send the file with header() magic
header("Expires: Mon, 26 Nov 2010 12:00:00 GMT");
header("Last-Modified: " . gmdate("D,d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-Type: Application/octet-stream");
header("Content-disposition: attachment; filename=" . $downloads['orders_products_filename']);
I really need to figure this out ASAP - any and all feedback would be appreciated.





LinkBack URL
About LinkBacks










Bookmarks