I have the same problem. My solution is to build the url using the
define FULL_BASE_URL (defined in CAKE/config/paths.php), and $this-
>webroot (where $this is a helper or a controller, but not a view),
plus a webroot-relative literal. There doesn't seem to be a define for
URL directory separators
Save the filename/path to a table?
On Thu, May 28, 2009 at 3:53 PM, Dave Maharaj :: WidePixels.com
wrote:
> This is a simple question that has me stumped.
>
> A user uploads an image that gets saves to webroot/img/user/photos
>
> Now in the profile there is the thumbnails of the photos...but how
I would save the files using the user id as part of the filename e.g.
user_12.jpg
--~--~-~--~~~---~--~~
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 unsu
This is a simple question that has me stumped.
A user uploads an image that gets saves to webroot/img/user/photos
Now in the profile there is the thumbnails of the photos...but how do I get
the url for that so when clicked they can view the full image in
webroot/img/user/photos/large?
thanks