This is a discussion on MAJOR BUG! PDF Virtual Download File Gets Corrupt! within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; When downloading then saving the "Virtual Product" (which is a PDF file) to my desktop and try to open it, ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 Quote:
I really need to figure this out ASAP - any and all feedback would be appreciated. |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| Major Bug is an overstatement. Turn off 'download by redirect' in the configuration - downloads section of the admin. PDFs download just fine for me.
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| Well, that partially work. Adobe still states that "file could not be found" when trying to open from the popup download window. However, it does work now when I save the file to a folder or desktop. We're halfway there. |
|
#4
| ||||
| ||||
| AFAIK you must save a download before opening it. Otherwise it is just a tmp file in the windows tmp dir and windows seems to have a problem rendering that since it does not have the same filename as the actual file. I have replicated this behavior in many different programs, not just osCommerce, so I think it due to the method of download as an attachment. Fortunately, when downloads occur, you can click the save button, then once it is saved, you can then click the open button in the same popup...
__________________ Michael Sasek osCMax Developer
|
|
#5
| |||
| |||
| Thanks, masasek. I made posted a note next to the "Download Links" instructing the client to "SAVE" in their account history info page. That should work. I tried a few other methods for delivery by adding lines to the header()magic, like header(Content-type: application/pdf) and header(Content-transfer-encoding: binary) and header(Content-transfer-encoding: base64), but nothing helped. I may still dig into it further, but it is something for another day. Thanks again. You 're the man. |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| times out when trying to download easy populate file | taol | osCMax v2 Features Discussion | 2 | 08-23-2006 04:21 PM |
| File Download Not Working | Keilup | osCMax v1.7 General Mods Discussion | 10 | 08-15-2005 11:09 AM |
| Download results in corrupt file | red_fraggle | osCMax v2 Features Discussion | 0 | 07-27-2005 03:16 PM |
| Multiple download file for same item possible? | Anonymous | osCMax v1.7 Discussion | 1 | 05-01-2004 06:56 AM |
| Where's the v2.2CVS download file? | ezcash | osCommerce 2.2 Installation Help | 1 | 11-20-2002 11:33 AM |