Support » Fixing WordPress » all image uploads fail

  • I’ve never previously had this problem & am stumped by it. When I try to upload any image (or pdf) file to my default image folder, I receive this failure error msg:

    Couldn’t upload your file to /home/richard2/public_html/photos/uncategorized/CynthiaNimsSAM1.jpg

    Does this mean anything to someone? And couldn’t this error be a little more specific so I could figure out what was causing the failure? I haven’t changed any settings relating to uploads or images.

Viewing 15 replies - 1 through 15 (of 23 total)
  • I figured out my problem. My image file name had hyphens in it. WP insists on no hyphens in image file names (I gather).

    Nope, that didn’t fix it. Even with a single word in the image filename (i.e. lark.jpg) the image still wont’ upload. It will however upload via ftp.

    What gives?

    Moderator James Huff


    Make sure that the permissions for the folder which you are attempting to upload into are 777 (CHMOD 777).

    They are & they’ve been that both when I could upload images & now when I can’t.

    There’s an option to disable uploading in OPTIONS > MISCELLANEOUS. Could the “Allow File Uploads” box have gotten unchecked somehow? Also be sure the various options, such as “Allowed File Extensions” are still set the way you want them.

    No, the Allow Uploads box remains checked & I have both jpg & pdf listed as allowed file types. Still no upload.

    Figured you’d have checked that right away, but it’s always worth a reminder…

    Are the files you’re trying to upload now markedly larger than the earlier ones? The maximum php-uploadable file size can be configured on the server. Maybe you’re hitting that limit?

    I’ve increased the file size upload maximum in both the WP admin interface & in my php.ini file to accomodate larger files & it still won’t work. The php.ini file readme.txt even suggested uploading it to every folder into which you would upload image or audio files. I did that. No dice.

    But no, these files are not especially big.

    It just started happening out of the blue a few days ago. I have no idea what’s causing this but it’s a royal pain in the behind.

    Can anyone suggest a workaround for creating thumbnails if I only have ftp upload functionality? Is the only way to create thumbs if you upload within the WP interface? Or is there a way to do this via ftp? Pls. don’t say the answer is no or I might cut my wrists (not really).

    Sorry, you’ve got me stumped at the moment… The only thing I can think of is the usual troubleshooting step of “what changed around the time this happened” in your install. If nothing truly changed then that pretty much just leaves the server. You’ve probably thought of this stuff already, but a few ideas:

    • Log off & back on in case it’s a user level / cookie thing.
    • Disable plugins one by one, testing each time. I’ve had functions broken by plugins in very non-intuitive ways.
    • Check with your host to see if PHP security or the upload path has changed somehow.

    You can fake a thumbnail by hard-coding the image size you want into your (X)HTML, i.e <img height="150" width="100" ...>. This does not create an actual thumbnail file, and has the added drawback of not provding any bandwidth reduction because the full file is still downloaded to the browser.

    There are lots of image editing programs that can make thumbnails on your computer, then you can upload them. Some can automatically batch process lots of images at once. Some are free. I’ve never heard of an FTP application with this built in, though. Try Googling “thumbnail image editor” or similar.

    I should try yr. suggestion about turning plugins on & off & testing. haven’t done that.

    I’ve just realized that I can use ecto to publish to my blog & so avoid the image upload problem in the wp interface. But I’m having a separate problem with ecto that is causing uploads to my server to fail. Got to get that fixed. But I do think I’ll be able to upload images & create thumbs via ecto.

    I also figured out how to create 2 separate image files using ftp that would combine as thumb & full size versions. But it’s godawful duplication of work compared to creating a nice simply thumb via wp.

    Moderator James Huff


    Hm, dedge has already touched on most of what I would have suggested. Have you tried uploading with all plugins disabled? Also, have you tried using a different browser to upload?



    Hey, btw can anyone tell me why the upload failure error msg. referred to in the first post in this thread refers to my host server filepath like so:

    Couldn’t upload your file to /home/richard2/public_html/photos/uncategorized/CynthiaNimsSAM1.jpg

    rather than to my wp filepath which would be:

    Moderator James Huff


    Ah, good point.

    /home/richard2/public_html/photos/uncategorized/ is actually a server path, but it is incorrect because it does not include the /tikun_olam/ directory.

    Go to Options/Miscellanious and enter the following path for “Destination directory”:


    I hope that works!

    Moderator James Huff


    Wait, there doesn’t seem to be /photos/ or /uncategorized/ under /tikun_olam/ you’ll have to create those first.

    The key point is that WordPress can only write to directories inside its blog directory, even if the directory permissions are 777.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘all image uploads fail’ is closed to new replies.