Here we go: http://bin.cakephp.org/view/871631430
Don't think I changed anything else apart from the callback, however this was only added in the later revisions of 1.2 from what I can see (as I had to manually add it to the model at one stage). On Jun 14, 11:16 pm, "Tane Piper" <[EMAIL PROTECTED]> wrote: > Please do, it sounds like a much better idea to do it before validation! > > On 6/14/07, Chris Partridge <[EMAIL PROTECTED]> wrote: > > > > > > > Looks good Tane. > > > One thing I have changed in my latest version is the callback where > > the behavior is executed, moving it from beforeSafe to beforeValidate > > - that way the file canupload(or attempt to), making it easier to > > use standard cake validation. > > > I'll paste it in the bin tomorrow. > > > Cheers, > > Chris > > > On Jun 14, 8:15 pm, "Tane Piper" <[EMAIL PROTECTED]> > > wrote: > > > OK Folks, I've uploaded 1.1 of the behaviour. Until the article is > > > approved again on the Bakery, I've also added it to the bin: > > > >http://bin.cakephp.org/view/82605077 > > > > On 6/14/07, Allen Romero <[EMAIL PROTECTED]> wrote: > > > > > actually this was one of the problems. the directories were writable > > > > by the app but not readable by me. chmod 755'ing everything fixed the > > > > what appeared to be corrupt image problem. :-) > > > > > thx. > > > > > allen > > > > > On 6/14/07, Allen Romero <[EMAIL PROTECTED]> wrote: > > > > > On 6/13/07, Joshua McFarren <[EMAIL PROTECTED]> wrote: > > > > > > > I know this sounds really obvious, but these obvious things are > > > > > > usually what I overlook and get stuck on: > > > > > > > Is the directory you're trying to save the image to writable by the > > > > > > app? > > > > > > Yep. Checked this. doesn't seem to be the problem. thx. for the > > > > > pointer though. > > > > > > > On my Debian GNU/Linux server Apache is in the group www-data, so > > > > > > for > > > > > > this example you would need to: > > > > > > $ sudo chgrp www-data /var/www/cakexxxxx/app/webroot/files/Image > > > > > > $ sudo chown g=rwX /var/www/cakexxxxx/app/webroot/files/Image > > > > > > > You'll need to change the groups and paths for your > > > > > > configuration.... > > > > > > or all the syntax if you're not on a *nix system. > > > > -- > > > Tane Piperhttp://webrocket.wordpress.com > > > > This email is: [ ] blogable [ x ] ask first [ ] private > > -- > Tane Piperhttp://digitalspaghetti.tooum.net > > This email is: [ ] blogable [ x ] ask first [ ] private --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
