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
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
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
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
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