• Until yesterday, I have had very few problems with uploading photos to my posts but now I keep getting this message: ….has failed to upload due to an error. Failed to write file to disk.
    In my last post today, I tried for ages and managed to get one in. This is my blog: http://www.fabulousfashionforever.com
    Any help would be greatly appreciated as my blog is heavily dependent on photos.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Nice magazine layout (ha! I kill me! *sips more coffee*).

    Can you check the file permissions for your wp-content/uploads directory? For the web server user id to write to it, the directory and it’s sub-directories should be 755 which is rwxr-xr-x.

    I have a similar issue. I can’t Insert image in post. How does one check the file permissions? Thanks Jan!

    Thread Starter Suzanneper

    (@suzanneper)

    Very funny,Jan, thanks. Today it seems to be working. I don’t actually know how to check what you said. Can you please explain where that would be?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m glad that’s working now. You may want to check with your hosting company and ask them if the file system was mounted as RO, or just “what changed?”

    This codex article describes the rwxr-wr-w much more eloquently than I can:

    http://codex.wordpress.org/Changing_File_Permissions

    The files and folders have permission set on them for Read/Write/eXecute. When you (your webserver actually) wants to read the contents of a file, the file has to be set to at least r for Read for the user ID or group that the user ID exists in.

    Directories are a little different. When you want to write (upload) a file to a directory, your webserver needs to be able to modify the directory. For directories that’s the x bit. So if you want to be able to modify a file (such as a theme) in WordPress then that file needs to be read and write (rw). If you want to upload images then the directory that you are uploading to needs to be read, write, and execute (rwx).

    The article explains it better as well as how to check using an FTP client.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I can no longer upload photos into my posts’ is closed to new replies.