I'm using SuPHP ( libapache2-mod-suphp in debian/ubuntu ) for the permissions.
On Jun 15, 8:10 am, "Tane Piper" <[EMAIL PROTECTED]> wrote: > Hmm - Now I get the same thing, but the images are readable from my > website, it's only when I view them in Gnome that I can't see the > uploaded image, but can see the thumbnails. > > I think it's due to the permissions with the www-data user, which > means apache should have no problem reading them. If you want to view > the files you should add yourself to the group. > > On 6/15/07, luke BAKING barker <[EMAIL PROTECTED]> wrote: > > > > > > > I get the same thing when I look at the file put in images/ I cannot > > read it, but all the generated thumbs are readable, how should th > > epermissions be on directory /files/images then on a Unix system so > > that when PHP moves the uploaded image to the directory it and all the > > created thumbs are rendered readable by a website visitor? > > > Great behavior though Tane, thanks, of course, to Chris P too for his > > work. > > > Thanks, > > > Luke > > > On Jun 15, 2:27 am, Chris Partridge <[EMAIL PROTECTED]> wrote: > > > 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 > > -- > 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 -~----------~----~----~----~------~----~------~--~---
