On Mon, Jul 26, 2010 at 7:56 AM, rez...@gmail.com <rez...@gmail.com> wrote: > thanx > > the project files structure > / > /webroot > /userFiles > /controllers > /models > /vendors > .. > .. > etc > > is userFiles folder outside document root ?
Yes, the "root" of your site is the webroot dir (hence the name). Anything in there can be accessed directly (like, /css/whatever.css, /img/whatever.jpg, or /foo.html). > whats can I do to make a separated image folder for users ? There are three (that I know of) ways to go about this using existing code. MediaView [1], Nick Baker's FileUpload plugin [2], or David Persson's Media plugin [2]. I haven't used the latter, although I have looked at the code. It seems very complete but, as I said, I haven't used it. The FileUpload plugin works great, although I've never used the helper part of it. I don't know if it's a very good solution if you'll be serving lots of these files. If so, you should consider caching. Ditto for MediaView. [1] http://book.cakephp.org/view/489/Media-Views [2] http://github.com/webtechnick/CakePHP-FileUpload-Plugin http://bakery.cakephp.org/articles/view/file-upload-component-w-automagic-model-optional [3] http://wiki.github.com/davidpersson/media/ 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en