Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Photo Upload Error

Asked Modified Viewed 1,409 times
C
CrAzEd
C
CrAzEd 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

Yup, another error :)

This time it happens when I try to upload a picture into one of the photo albums. The picture falls withing the size and height/width requirements, so no problems there. These are the errors I am getting:


Warning: move_uploaded_file(images/photoalbum/submissions/schooler2.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/kjharnco/public_html/submit.php on line 238

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpJITFfu' to 'images/photoalbum/submissions/schooler2.jpg' in /home/kjharnco/public_html/submit.php on line 238

Warning: chmod() [function.chmod]: No such file or directory in /home/kjharnco/public_html/submit.php on line 239

Warning: file_get_contents(images/photoalbum/submissions/schooler2.jpg) [function.file-get-contents]: failed to open stream: No such file or directory in /home/kjharnco/public_html/maincore.php on line 409


Here are lines 235-240 for reference:
            $error = 3;
         } else {
            $photo_file = image_exists($photo_dest, $photo_name.$photo_ext);
            move_uploaded_file($photo_pic['tmp_name'], $photo_dest.$photo_file);
            chmod($photo_dest.$photo_file, 0644);
            $imagefile = @getimagesize($photo_dest.$photo_file);




Please help, much appreciated
0 replies
There are no post found.

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet