WordPress.org

Ready to get started?Download WordPress

Forums

ERROR UPLOAD : The uploaded file could not be moved to (8 posts)

  1. jabbamonkey
    Member
    Posted 3 years ago #

    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/websitename.com/httpdocs/wp-content/uploads.

    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!

  2. jabbamonkey
    Member
    Posted 3 years ago #

    Anyone out there?

  3. jabbamonkey
    Member
    Posted 3 years ago #

    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?

  4. jabbamonkey
    Member
    Posted 3 years ago #

    Anyone?

  5. jimmyt1988
    Member
    Posted 2 years ago #

    Same problem... no idea :(

  6. blastery
    Member
    Posted 2 years ago #

    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,

    or
    creating new "uploads" folder should help too

  7. Roscius
    Member
    Posted 2 years ago #

    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.

  8. Roscius
    Member
    Posted 2 years ago #

    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).

    http://codex.wordpress.org/Changing_File_Permissions

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.