There is no official folder for uploaded files.

For long-term storage I have used app/uploads with sub-folders for
different models and plugins to have a bit of organisation and less
problems with clashing names.
app/uploads/user/a_profile_image.jpg
app/uploads/message/an_attachement.pdf
(I generally prefer to keep the orignal names and only change them if
they clash.)

For "session files" that are only stored for a certain process or
transaction I have taken to using app/tmp/uploads. This folder is also
cleaned from old files ever now and then.




On Oct 12, 11:52 pm, Adam Royle <[EMAIL PROTECTED]> wrote:
> If you don't want to change your code, you can simply add a .htaccess
> file in your uploads directory ...
>
> deny from all
>
> On Oct 13, 4:52 am, 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