File sizes are about the same - the contents are what get mangled. For instance, in a PDF there were a couple pages that in the “real” file had content but in the downloaded file did not (blank pages).
Here’s the htaccess code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php/$1 [L]
That’s all that’s in there.
Angie,
From what you describe (and your .htaccess file) it is very difficult to say what the issue might be - I don’t believe anyone has reported an identical issue. Have you tried downloading from different computers? Is there a chance of testing the module on a different or local server? If you’d like to PM me with logins for DB/EE/FTP, I’d be happy to take a look at your setup and see if I can determine the issue.
Thanks, Brad
Angie,
Although it may have taken 3 hours of troubleshooting, this issue has been resolved. Although I couldn’t begin to tell you why, the problem appeared to be in the way your server handled streaming files. Could you tell me whether your server is a windows or linux box? I altered the function that serves the files and verified working in both LinkLocker Free and LinkLocker Pro. Left updated version of LinkLocker Free installed on your server. Will test both modified versions of the module on my own servers, and perhaps issue an updated version of each in the near future to prevent others from possibly having the same issue.
I tried LinkLocker: http://russianlistening.com/download_file/
The whole template code is:
<a href = "{exp:linklocker url=" expires="10" iplock="off" page="{path=site/error}" title = "Download">Download</a>
(attached; the forum doesn’t show the code correctly)
ExpressionEngine 1.6.7 MSM 1.1
File (uploaded test file): test_file.zip (9MB)
Result (downloaded file) is: russ. (13.5MB)
Where can I look for the error?
Sigork,
I tried downloading the file using the link you provided. If you change the extension of the downloaded file to .html, you’ll see that it is actually serving a web page. I don’t speak the language so I couldn’t possibly tell you what it says, but perhaps this will help point you in the right direction?
Sigork,
A quick uninstall/install of the module fixed it. I went ahead and upgraded it to the newest version that I haven’t released yet (1.5) anyways. The .zip file you’re trying to download is corrupt - doesn’t open even if you download without LinkLocker encryption. I put a text file in the download directory and verified it worked. Anyways, try a valid file and let me know that it works.
Thanks, Brad
Everything works correctly.
But a question. You mentioned:
Mime types have been updated and now support is confirmed for the following filetypes: .pdf, .ppt, .doc, .xls, .rar, .tar, .zip, .jpg, .jpeg, .gif, .png, .wma, .flv, .mov, .mp3, .wav
Th list doesn’t include .exe
Can I use .exe files? (The file wasn’t corrupted - I replaced .exe w/ .zip after reading the above list of filetypes).
Because now I changed .zip to .exe and see it works also (though it is absent in the list). Should .exe be added to this list or it is better not to use .exe files w/ LinkLocker (but I downloaded it successfully with LinkLocker)?
Thanks a lot!
Greetings,
I’ve downloaded and installed this plugin for a client website and it works quite well. Initially there seemed to be some issue with the downloads seeming to go very slowly but that may have just been my Internet connection. Is there any throttling of downloads going on as a result of this module or as a response by the webserver?
But I’m wondering if this module code can be used in the response emails that are sent out by the Simple Commerce module. If not then are there any suggestions on how to use the Simple Commerce module to allow people to purchase media for downloads using the links provided by this module?
Thanks for your time, Bob.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.