When you upload files, usually it goes to the temp folder of Apache.
The you can use "move_uploaded_file" (php function) to move the file
to APP."somewhere" ... Of course you would create the "somewhere"
folder before.

hth

On Oct 12, 8:52 pm, Orhan Toy <[EMAIL PROTECTED]> wrote:
> Hi
>
> There a plenty of guides about uploading files to a database or to the
> public folder with Cake. But what if I just want to upload files to
> private folder? One solution could be to make my own folder somewhere
> in the root but is there a predefined directory for this purpose?
>
> What I mean about private is that you can't access the file directly
> via an url but instead it is the controller's job to get the file from
> the "private" folder and serve it to the user.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to