jamescalvin Posted August 14, 2005 Share Posted August 14, 2005 When a customer downloads a file from their account, the download is successfull to their computer but they get an error saying the file is invalid when they try to access it. However, if I try to access the file directly mysite.com/catalog/download/file.zip then it downloads and opens with no problems. 1st off, why is their an error when the customer downloads the zip file 2nd why am I allowed to access the file by going to the direct path. This is literally all I need fixed before I can launch this site so please please help me. Thanks Web Development, 365... 366 in a leap year. Link to comment Share on other sites More sharing options...
OceanRanch Posted August 14, 2005 Share Posted August 14, 2005 Check the file contents that the customer has downloaded using a normal editor. I have seen where server error messages are placed in the download when a problems has occurred. One of those messages was that "safe_mode" was turned on in php.ini and download re-direct in oscommerce/admin was set to true. Try setting re-direct to false (or true if it was false) and see if that helps. Tom Link to comment Share on other sites More sharing options...
Guest Posted August 15, 2005 Share Posted August 15, 2005 99 times out of 100 it's customer error, not unzipping the files correctly - point them to free programs like WinRAR or WinZip :) Link to comment Share on other sites More sharing options...
jamescalvin Posted August 15, 2005 Author Share Posted August 15, 2005 99 times out of 100 it's customer error, not unzipping the files correctly - point them to free programs like WinRAR or WinZip :) <{POST_SNAPBACK}> Hi everyone, thanks for the responses. I know for sure it's not the customer because when I test it myself I get the same problem. Also, I have my download redirect set to "false". I'll try tweaking with that to see if that does anything for me. Web Development, 365... 366 in a leap year. Link to comment Share on other sites More sharing options...
jamescalvin Posted August 15, 2005 Author Share Posted August 15, 2005 Hi everyone, thanks for the responses. I know for sure it's not the customer because when I test it myself I get the same problem. Also, I have my download redirect set to "false". I'll try tweaking with that to see if that does anything for me. <{POST_SNAPBACK}> When I set my downlaod redirect to true, I get a 404 page cannot be displayed message. So at this point neither way is working for me. Web Development, 365... 366 in a leap year. Link to comment Share on other sites More sharing options...
jamescalvin Posted August 15, 2005 Author Share Posted August 15, 2005 Check the file contents that the customer has downloaded using a normal editor. I have seen where server error messages are placed in the download when a problems has occurred. One of those messages was that "safe_mode" was turned on in php.ini and download re-direct in oscommerce/admin was set to true. Try setting re-direct to false (or true if it was false) and see if that helps. Tom <{POST_SNAPBACK}> Hi Tom, where can I find that PHP.ini file?? I'll see if I can do a thing or two with that. Web Development, 365... 366 in a leap year. Link to comment Share on other sites More sharing options...
OceanRanch Posted August 15, 2005 Share Posted August 15, 2005 Was there an error message in the download file? Run admin->tools->server info It will tell where your particular php.ini file is located on your your server that it is using. HTH Tom Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.