PHP Scripting Forums » PHP Classes Support Forum

upload_class permision denied on move_upload

(4 posts)
Great offers not only for geeks!
Your Ad Here

  1. User has not uploaded an avatar

    xalexas
    Member

    Hi, I need help with this script. It gives me error on part where it should move uploaded file from /tmp directory to files/mail. Can it be fixed somehow? I can't alter permissions on hosting webserver.

    Warning: move_uploaded_file(/files/mail/1218100604.zip) [function.move-uploaded-file]: failed to open stream: Permission denied in /phpmailer/upload/upload_class.php on line 131

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpHeUZyV' to '/files/mail/1218100604.zip' in /phpmailer/upload/upload_class.php on line 131

    Posted 3 months ago #
  2. Hi,

    if you can't change the permissions on your server (try FTP chmod 0777) than you're unable to upload files.

    Posted 3 months ago #
  3. User has not uploaded an avatar

    xalexas
    Member

    As you can se in error log, file is uploaded to /tmp but it can't be moved due to permissions. Is it necessary to move file? Can it be just copied with new name (original name) to mail?

    Posted 3 months ago #
  4. Quote from: xalexas
    "As you can se in error log, file is uploaded to /tmp but it can't be moved due to permissions. Is it necessary to move file? Can it be just copied with new name (original name) to mail?"

    yes this is how it works

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.