Re: Protected File Download

2008-01-06 Thread R. Rajesh Jeba Anbiah
On Jan 2, 5:54 pm, Bart <[EMAIL PROTECTED]> wrote: > (i'm a newbe) > I want my site-visitors to be able after login to download an (audio/ > image)file that is only for them. > I have two options: > uploading the files into the database or uploading the files onto > the server in a folder with f

Re: Protected File Download

2008-01-06 Thread Bart
Great! You've helped me so much! Especially the link options that look like "__('Download this file', true) " did it. Didn't have the chance yet to dig into those details. For the other newbes: Make sure you don't print anything (with e.g. "pr()" ) before you start sending headers+the file because

Re: Protected File Download

2008-01-02 Thread Christophe Cholot
Hello, I would suggest you to store your uploaded files on your filesystem, ex : /home/yourappname/uploads/ - Use app/config/core.php or bootstrap.php to write your file storage path : Configure::write('Music.uploadPath', '/home/yourappname/uploads/ music/'); or define('MUSIC_UPLOAD_PA

Re: Protected File Download

2008-01-02 Thread Dr. Tarique Sani
Place the meta data of the file in a database, and the files outside the webroot then use a combination of proper headers and a call to readfile() in your code to allow for download. http://php.net/readfile <- have not looked there but this should have some sample code in the notes HTH Tarique

Protected File Download

2008-01-02 Thread Bart
Hi! (i'm a newbe) I want my site-visitors to be able after login to download an (audio/ image)file that is only for them. I have two options: uploading the files into the database or uploading the files onto the server in a folder with filedata in the DB. The first has the advantage of security