Forums

[resolved] Media Upload not working (10 posts)

  1. sigmadog
    Member
    Posted 9 months ago #

    I cannot upload to my site via the Media Upload function (both Flash and Browser versions).
    I get the following message in the uploader:

    “MYIMAGE.jpg” has failed to upload due to an error
    The uploaded file could not be moved to /SERVER LOCATION/httpdocs/wp-content/uploads/2011/08.

    I can, however, upload to the very same directory via my ftp client. This suggests an issue with the media upload function.

    I checked file permissions and the upload directory and all directories within it are set to 0755.

    I tried manually reloading WordPress 3.2.1 on the theory that there were some corrupted files, but still the media upload does not function.

    Any ideas on what I should try next?

    P.S. this site is on a shared server setup.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Try changing the permissions on the wp-content directory to 766. If you still have problems, try 767, 775 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.
    http://codex.wordpress.org/Changing_File_Permissions

  3. sigmadog
    Member
    Posted 9 months ago #

    Thanks, esmi;
    I had the following results:

    755 - no luck (this is the original setting)
    767 - Yes! But no luck when going back to 755
    777 - Yes! But no luck when going back to 755
    766 - no luck.

    Do I need to keep the permissions at 767? Should I be concerned about security with that setting?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Did you manually create the uploads folder or the 2011/08 sub-folder?

  5. sigmadog
    Member
    Posted 9 months ago #

    The 2011 subfolder was already created, but I manually created the 08 folder. Should I delete it and try letting wordpress create it with the 767 permissions?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Yes! It's essential that WP creates the folders itself.

  7. sigmadog
    Member
    Posted 9 months ago #

    Okay. I deleted the 08 directory.

    I set the permissions of 2011 directory to 755. I still received an error message, this time stating that the directory 08 could not be created.

    I then set the permissions of 2011 directory to 767. This time I was able to upload the file, and a new 08 directory was created with 767 permissions.

    I changed the 2011 permissions back to 755, but the 08 directory is locked at 767 and I cannot change it. But the uploads are working.

    Still not sure if this is an ideal situation for directory permissions, but it's the only way to get it to work.

    Also, I appreciate your help on this confusing problem.

  8. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Leave the 2011 folder set at 767.

  9. sigmadog
    Member
    Posted 9 months ago #

    Will do.

    Thanks so much for your help, esmi. You're a diva for sure!

  10. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    No problem :-)

Reply

You must log in to post.

About this Topic