• Resolved mikeatvillage

    (@mikeatvillage)


    Hi,

    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.

    Thanks

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

    Thread Starter mikeatvillage

    (@mikeatvillage)

    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 ?

    ATB

    Mike

    Thread Starter mikeatvillage

    (@mikeatvillage)

    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 ?

    ATB

    Mike

    Thread Starter mikeatvillage

    (@mikeatvillage)

    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 ?

    Thread Starter mikeatvillage

    (@mikeatvillage)

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

    Thread Starter mikeatvillage

    (@mikeatvillage)

    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.