Monday, July 26, 2010

Re: Display images outside webroot folder

thanx

the project files structure
/
/webroot
/userFiles
/controllers
/models
/vendors
..
..
etc

is userFiles folder outside document root ?

whats can I do to make a separated image folder for users ?

On Jul 26, 2:42 pm, Andy Gale <a...@salgo.net> wrote:
> On Mon, Jul 26, 2010 at 12:37 PM, rez...@gmail.com <rez...@gmail.com> wrote:
> > In my application I upload images in folder outside webroot called
> > userFiles - in the same level of webroot - and I can't display these
> > images using html helper
> > <?php echo $html->image('/userFiles/my_pic.png')?>
> > as cake consider all images url in webroot img
> > Any help plz
>
> They are outside the document root so your web server can't serve them.
>
> --
> Andy Galehttp://andy-gale.comhttp://twitter.com/andygale

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: