You can place them outside the application folder, just use Apache Alias to map them in under the webroot.
Alias /usr_img "file path to the user image folder" Enjoy, John On May 21, 8:27 am, mikeottinger <[email protected]> wrote: > Hi All, > > I have a site that allows the user, through an admin section, the > ability to upload his own images to the site, a very poor man's CMS if > you will. This has all worked pretty well but for one annoying aspect > that I finally want to address. Currently all uploaded images are > placed in app/webroot/img where they're used with the html helpers. > Why I don't like this approach is that these files get mixed in with > files under source control. My production server is basically an SVN > checkout of the application. Everything is perfectly in synch with SVN > except for these user uploaded images. What I had in mind was setting > aside a directory outside of the cakephp app instance and have my > image paths point to there. This doesn't work because this outside > directory is not a document root to the web server. I suppose I could > setup a separate host configuration within apache and place them in > its document root. Long story short, has anyone devised any better > ways to keep user generated content out of the application's directory > structure? > > Thanks in advance. > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > 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 > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
