Tags:
Permalink Reply by Matt Thomson on May 17, 2010 at 4:21pm I know of 2 methods to get round this:
1.)Store the files in (for example) media/restricted_downloads, and put a .htaccess file in there that denys from all. Then once you have done you acl, read the file, and send it to the browser, eg something like:
header('Content-type: application/zip');
header('Content-Disposition: attachment; filename="'.$filename.'"');
readfile($filePath);
flush();
2.)Same thing, but store the files above the webroot.
Permalink Reply by Alain Rivest on May 17, 2010 at 5:04pm
Permalink Reply by Matt Thomson on May 17, 2010 at 6:33pm
Permalink Reply by Matt Thomson on May 17, 2010 at 8:54pm I made my own little component to download files from a secure location (http://www.ignitejoomlaextensions.com/component/option,com_idownloa...), it is only one file (no admin interface, but if you want, I can post it somewhere.
Permalink Reply by Matt Thomson on May 17, 2010 at 10:35pm © 2012 Created by Amy Stephen.