Posted on: 08/13/03 03:28pm
By: superjosh
I tried to find a post with a similar error, but couldn\'t, so here\'s the problem. When users (and me, for that matter) try to upload a user photo, they receive this message:
Warning: move_uploaded_file(D:/wwwsites/joshwilsonorg/www/images/userphotos/SuperJosh.jpeg): failed to open stream: Permission denied in D:wwwsitesjoshwilsonorggeeklog_privatesystemclassesupload.class.php on line 453
Warning: move_uploaded_file(): Unable to move \'C:WINNTTEMPphp414.tmp\' to \'D:/wwwsites/joshwilsonorg/www/images/userphotos/SuperJosh.jpeg\' in D:wwwsitesjoshwilsonorggeeklog_privatesystemclassesupload.class.php on line 453
Warning: chmod(): No such file or directory in D:wwwsitesjoshwilsonorggeeklog_privatesystemclassesupload.class.php on line 521
ERRORS
Upload of superjoshavatar.jpeg failed.
Chmod of superjoshavatar.jpeg to 0644 failed
Ok, i\'ve looked at the upload.class.php at line 453 and couldn\'t find anything about permissions. The line 521 error just confuses me. I verified the user photo directory exists. As for the chmod, well, that\'s probably because the file doens\'t exist becasue it won\'t upload.
I\'ve checked my permissions through ftp, but I\'m not sure if it\'s reporting back correctly since the server is a Windows box (not by my choice...)
Anyways, any help would be greatly appreciated.
Josh
Re:File upload problem
Posted on: 08/13/03 03:53pm
By: superjosh
Ok, yeah well, I\'m an idiot and you can ignore me. My ftp program was reporting permissions wrong. It\'s fixed now.
Man I hate doing things like that.
-Josh