file upload problem
Posted by: leslie
Posted on: 2005-04-10 12:15:00
I've been searching both the forums and kbase, and still haven't found a solution to the problem I'm having. I'm working on a php/mysql site that I did not originally code, and it was recently moved to Dreamhost from another hosting company, and even though none of the code in the pages in question have changed, the image upload is now not working on Dreamhost.
I've been banging my head against the wall trying to find the exact problem, and none of the solutions to the same problem posted in this forum are applicable to my situation.
The page is in an protected admin area on my client's site, but basically the deal is that a entry is added in the section, that also includes a photo. The photo is uploaded to a temp directory, renamed and moved to another directory, while the entry is written to the db. The entry is writing to the db, but I get this error message everytime regarding the image upload:
Warning: copy(/home/litwin/jenniferlitwin.com/tmp/phpV8LOOl): failed to open stream: No such file or directory in /home/.ogies/
litwin/jenniferlitwin.com/admin/scripts/admin_press.php on line 120
The path to the temp directory is correct and both the temp directory and the final directory where the images are moved to are chmoded to 755. Can someone take a peek at the following code and tell me what I'm obviously overlooking?
Any help would be greatly appreciated. Thanks.