WordPress.org

Support

Support » How-To and Troubleshooting » Failed to write file to disk

Failed to write file to disk

  • Hi, im getting an error message when i try to upload images, its saying

    failed to write file to disk

    ive looked it up and someone found a solution, but i dont really get what to do cos im not proficient with my coding quite yet

    please explain clearly lmao

    -thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Today I started experiencing this issue as well after successfully uploading several photos. I did an extensive search on this forum and Google I was amazed to not find a clear resolution. This lead me to searching through the WordPress core files for the error message to see what was going on. The error message seemed to be triggered after the file was uploaded to the temporary directory where php stores the newly uploaded file. I did not have access to this directory, so I contacted my host and they were able to repair/remove the temporary files in the directory. This immediately resolved the issue for me and I hope this helps resolve it for all of you.

    Hi,

    Assign 766 recursive permissions to wp-contents directory of your blog and also add this code in htaccess:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    Make sure that you have set the proper upload directory path from wordpress admin area -> settings -> miscellaneous settings.

    Thanks,

    Shane G.

    Shane G-

    What or where is “htaccess”? Thanks for your help.

    Hi,.

    htaccess is the basic configuration file of your domain. It should be in the root directory of your domain. If you do not have an access of SSH then ask the hosting service provider to set 766 recursive permissions.

    Thanks,

    Shane G.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Failed to write file to disk’ is closed to new replies.
Skip to toolbar