Support » Fixing WordPress » ERROR UPLOAD : The uploaded file could not be moved to

  • jabbamonkey


    First off, I want to let you know that I searched the forum for this answer … and while there are solutions, none of those solutions worked for me.

    Anyway, I keep getting the following error…

    “imagename.jpg” has failed to upload due to an error
    The uploaded file could not be moved to /var/www/vhosts/

    Everyone says the uploads directory needs to be CHMOD’D to 777 … which I have done and I still get the error.

    Other posts have said that I need to create the uploads folder manually, and a folder inside called 2011 (for the year) and a folder inside that called 03 (for the month). All of them need to be CHMOD’d to 777. Tried it.

    Someone ever recommended using just 755, because “Some servers are touchy”. Still didin’t work. Still getting the same error.

    Is there another thing I can try? Some setting I need to get my webhost to change? Please help! Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • jabbamonkey


    Anyone out there?



    I’ve had someone recommend trying to 777 the entire wp-content folder and all of it’s contents. But that didn’t work as well.

    Someone even recommended to have my webhost put PHP into SAFE MODE. My webhost wont do that. Even if they would, I would not want to risk the security issues.

    Can anyone else help?




    Same problem… no idea 🙁

    I had same problem, changing to 777 wouldn’t help.
    Problem was “user” and “group”
    Changed “user” and “group” to www-data and all Permissions to 755 and it worked,

    creating new “uploads” folder should help too

    Really depends on the configuration of your web server. There is no ‘correct’ answer.

    The uploads directory needs to be writable by the user that your web server runs under (even this assumes that you are running a LAMP web server, IIS will be different).

    For 755,

    The first number 7, means that the owner of the directory can read, write and browse the contents of the directory. The second number is the group of the directory, and the third number is everyone else.

    You should be able to ask your web host what user the web server is running as and then change the ownership of the uploads directory to that user. Then as long as your permissions on the directory are set to 7** you’ll be good.

    Your web host should help you if you tell them you need the uploads directory to be writable by the user the web server is running as. If they can’t, change hosts, because any good host will do this for you.

    Also as a site note, some web server configurations don’t allow 777, and allow a maximum of 755 as a security issue (ie group and other users can’t ever write, they can only read).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ERROR UPLOAD : The uploaded file could not be moved to’ is closed to new replies.