In my sites I keep the user-uploaded content inside webroot/files/ Then each type of file has its own subfolder (ie. images, videos, documents, etc)
I just make sure I don't touch anything in that folder when I upload new files. If you are doing some kind of automated upload, then you could probably put that folder in an exclude list of some sort. You could store them somewhere arbitrary outside of the app, but you are pretty much on your own in regards to managing those files (and streaming binary files through php if you want to access via web). I also use a slightly different folder structure than the default, as shown below /app/ /cake/ /public_html/ or sometimes /projectname/app/ /projectname/cake/ /public_html/ Adam On Dec 6, 3:40 am, Stinkbug <[EMAIL PROTECTED]> wrote: > Our app will allow people to upload files. What I would like is to > store these files outside of the app directory, so that when we do new > deployments we don't have to be careful to overide files in the > webroot directory. > > Is there a recommended way to do this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
