Thanks will go thru your points, test out more stuff, settings. I know I had safe mode on always but just to check things I turned it off and now it uploads. With it on I found User permission message so it looks like server access with files folders. Man I hate dealing with the server.
Dave -----Original Message----- From: cricket [mailto:[email protected]] Sent: December-20-10 4:49 PM To: [email protected] Subject: Re: What could prevent Uploads? On Mon, Dec 20, 2010 at 1:29 PM, Dave Maharaj <[email protected]> wrote: > Puzzled by this one. I had the site uploading images no problem then it > stopped working so I am trying to trace back what I could have done to cause > this error. > > > > In the upload script I kept making debug($foo); exit(); statements to pin > point exactly where the script craps out You can also use die(debug($foo)); > and it’s when I copy (from temp to > new location). Use $this->log() on the paths involved. It could be something as simple as a double slash, missing slash, or incorrect concatenation of paths. Make sure the paths are full from root (not web root). > What should tmp be CHMOD to? CACHE folder tree? > > Tried 777 just to see and still no go so I doubt its folder permissions. I use chmod -R 0775 with the owner as the webserver and group as one that I am included in. Or you can go 0755 and just use sudo if you need to add/remove files manual for some reason, etc. The important thing is that the owner is the webserver and the permissions are applied recursively. You should never have to give full perms to a directory. > But I cannot see the temp file in tmp so I guess that mean it was never > uploaded? That depends when you look. Uploaded temp files are removed after the request is finished. How quickly that happens can vary. One thing I suppose might be somewhat helpful would be to log the directory contents. Also, log $this->params and $this->data to see what's actually been uploaded. > Any “try this “ or “check this” suggestions would be great since I’m sure > I’m over looking something simple. Check the upload error status in $this->params. Maybe the file is never reaching the server. 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 [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 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 [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
