WordPress.org

Ready to get started?Download WordPress

Forums

I got a http error when uploading images (13 posts)

  1. hanzhimeng
    Member
    Posted 6 years ago #

    I got a http error when I am uploading a image with a long name and there are some spaces and special characters in the name.

    Is that y it's not working, is there any thing I need to do to fix this problem?

  2. DianeV
    Member
    Posted 6 years ago #

    Are you using a web hosting account with Unix, Linux or the like? If so, filenames cannot have spaces in them:

    Correct:
    filename.jpg

    Not correct:
    file name.jpg

    As well, some characters are reserved for use by the server; try taking those out as well and see if it works.

  3. hanzhimeng
    Member
    Posted 6 years ago #

    Thanks for the reply

    and yes it is a Linux server.

  4. DianeV
    Member
    Posted 6 years ago #

    Okay. So Linux servers, which typically use the Apache web server software, do not play well with spaces in file names. In short, there CANNOT be spaces in the names of your files. Apache typically replaces them, as such:

    file name.jpg
    with
    file%20name.jpg

    But, since there is no file%20name.jpg, that causes a problem.

    Just ensure that your files don't have spaces in the file names (and I'd suggest not using any special characters that cause problems), and that should do it.

  5. Bodhipaksa
    Member
    Posted 6 years ago #

    my wife's blog has exactly the same problem -- it's a fresh install of 2.5.1. There are no spaces or special characters in the filenames. It's also on a linux server. I'm going to try reinstalling in case some files didn't get uploaded.

  6. geckospyker
    Member
    Posted 6 years ago #

    My blog is having the same problem. None of the file names have spaces or strange characters. I've even tried cropping and resizing and renaming to see if it made a difference, but I still get the HTTP error when WordPress starts "Crunching" the downloaded file. At that point all I can do is click on "dismiss" when it tells me "An error has occurred in the upload. Please try again later."

    Is there a permission I need to change or something within the database that could be causing this error?

  7. Bodhipaksa
    Member
    Posted 6 years ago #

    Fixed it in my wife's blog (mine wasn't affected) by installing this plugin. It's mentioned in Otto's sticky in the How-To forum.

  8. onealkl
    Member
    Posted 6 years ago #

    It seems to be only on smaller images that I get the http error. I can upload a large image, but it won't post to the page. I tried the plugin and I'm able to upload the smaller images now, but still can't post the image to the page.

  9. e-bony
    Member
    Posted 6 years ago #

    no plugins required, no namechanges, and no file reduction.

    "The solution for me was to edit the .htaccess file in the root directory of my webserver (the directory where WordPress is installed). Add the following to the the .htaccess file after the “END WordPress”:

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    If you are having the problem of your .htaccess file losing its changes, you have most likely put something inside the WordPress block of the .htaccess file. Keep any custom changes outside of that block or they will be overwritten."

    Compliments of:
    http://geek.thinkunique.org/2008/03/30/fix-wordpress-25-upload-error-http-error/

  10. Yizi
    Member
    Posted 6 years ago #

    Thanks it helped

  11. Warwick Booth
    Member
    Posted 6 years ago #

    yeah thanks, the .htaccess fix worked the best.

  12. Raakeeysh
    Member
    Posted 6 years ago #

    Thx Haecceity,
    I was tring to short it out from las 1 hr, but your, small link to big problem helped a lot for me.Thx for the link man.

    if any body have this http error then they should blindly use this no flash upload plugin.
    Thx again

  13. Anonymous
    Unregistered
    Posted 6 years ago #

    Raakeeysh

    Where do you upload the No Flash upload file to?

Topic Closed

This topic has been closed to new replies.

About this Topic