Support » Fixing WordPress » Can’t upload images

  • Resolved mikeatvillage



    I’m getting this error “Failed to write file to disk.” when I try to upload images from Admin/Write. /wp-content has permissions set to 777 as has /wp-content/uploads

    Any idea? I’ve tried a search without luck.


Viewing 7 replies - 1 through 7 (of 7 total)
  • Wonder if you can upload images using FTP to that folder?

    Yes, I’ve just uploaded an image to /wp-content/uploads using eLeetFTP without a problem. Also able to put files there using Dreamweaver.

    Do you know which of the wp files holds the name of the destination folder so I can check it’s correct ?



    Thanks Michael,

    I’ve checked the setting there and it is the default /wp-content/uploads but I still can’t upload anything.


    Anything else I should check ?



    Hi again,

    I posted my query on my host’s support forum and this was a reply…

    “My first guess would be that WordPress is using the copy() function to upload images. Because the open_basedir redirect is in place for security reasons, the copy() function will fail and move_uploaded_file() should be used instead.”

    Could this be the case ? If so, where can I edit this ?

    Any ideas on this ? I’ve just searched my site for “copy” but the result comes up with thousands 🙁

    Ah ha… resolved 🙂 My host advised me…

    “Have you enabled the ‘upload_tmp_dir’ PHP setting in the PHP settings section of MyPanel?

    Creating a ‘tmp’ directory with the permissions set to 777, and then making the change in MyPanel should fix it.”

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t upload images’ is closed to new replies.