Sierrab Posted October 1, 2005 Posted October 1, 2005 ......The redirect method works but I think its not good because the redirect link can easily be captured and given away with unlimited use until someone else places an order and the old links get deleted. Also I think download links currently in use can get deleted if more then one person is downloading at a time. On the other hand the direct download always requires store login before downloading but the readfile method loads the whole file in memory, 5M MP3 or 50M Album, so you need to use a chunk approach like the comment says. You can find some solutions at php.net under fread. ......... Is the above true? If all that were to be the case then why does redirect seem to be the recommended way or why is it even part of the package? Steve
Guest Posted October 1, 2005 Posted October 1, 2005 where are you getting the idea that redirect seems to be the recommended way? i always tell everyone to not redirect unless an error page, etc which is the main reason for redirect being available
Guest Posted October 1, 2005 Posted October 1, 2005 I do not see from the comments how to do that. And looking at the code the download counter for the same customer is decremented with each attempt. So even if an outsider uses the same session at the same time to download the same file, the counter should take care of it since it will continue to decrement. Now for pending orders there is a workaround: http://www.oscommerce.com/community/bugs,1060
Sierrab Posted October 1, 2005 Author Posted October 1, 2005 where are you getting the idea that redirect seems to be the recommended way? i always tell everyone to not redirect unless an error page, etc which is the main reason for redirect being available Thanks chaps After several months of reading the forums I had been left with the impression redirect was better, certainly in my case with large flac files I don't get the Error 500 pages that I did whilst using direct (This in spite of the fact I was using a "chunk" approach to downloading). In addition I found that the downloads were naming themseves correctly rather than Download.php.. What about the point re downloads becoming unavailable when a new user makes an order....is this correct? Steve
Recommended Posts
Archived
This topic is now archived and is closed to further replies.