Error Uploading Pictures in WordPress 2.5!

Posted: 13th April 2008 by Jacky Yong in Computers

How many of you have encountered this before? Upgrade your WordPress to the latest version 2.5, and when you try to upload a picture into your post, and BAM! You encounter an HTTP error!

It says after crunching the picture: “An error occurred in the upload. Please try again later.

What can you do about it? Uncle Google to the rescue. A quick search revealed that you should modify your .htaccess file in your root folder to include this bunch of lines.

<IfModule mod_security.c>
<Files async-upload.php>

SecFilterEngine Off
SecFilterScanPOST Off


Don’t worry if you do not understand a word what these lines mean. Neither do I.

Save it, and miraculously your image can now be uploaded. Weird.

  1. ks says:

    After added the lines to .htaccess as suggested by you. I get this error when upload image:
    Unable to create directory
    /home/myblog/wp-content/uploads/2008/04. Is its parent directory writable by the server?

    How to fix it?

  2. Jacky Yong says:

    This is a weird problem indeed. I have checked at my own folder here, and I found out that my folder here has full access rights:


    Check the properties of this particular folder. Mine has Write access to both Group and Public. Does yours has it?

  3. macappleboy says:

    HI good day! I just recently hosted my site and migrating my data to my own domain. I am trying to edit my site and decided to load up pictures. Thats the time I get the error message. I tried uninstalling and reinstalling wordpress and still the same until I found this solution. However, I went into my ftp and look under public_html and checked on the .htaccess file. I tried to download it to my computer (by the way I am using Mac if that will make a difference) but nothing is showing up in my computer. No .htaccess has been copied on my machine. I checked on the activities and found out a php file. I edited that and copied the above codes and as soon as I loaded it back to my ftp it gave me an error and my site is not accessible anymore. I will try to uninstall and reinstall it again but I still wanted to resolve the uploading error message. Hope you can help me with the step by step instructions. Sorry not that good in HTML.

    Thank you in advance

  4. Jacky Yong says:

    I’ll try to be more detailed:

    Go to your website’s control panel. My website’s control panel is using cPanel X by typing cpanel behind my website’s address. Go to the File Manager.

    It should prompt you with a dialog box. Go to the Home Directory, and select Show Hidden Files. This is important because the .htaccess file is hidden by default.

    You will be shown the content of your file. On the folder list on the left, navigate to the public_html. Click on the folder. Locate the .htaccess on the right.

    Right-click on the .htaccess file. A menu should come up. Select Edit.

    You will be presented with the content of the .htaccess file. It should look something like this, after you have added the lines that I have mentioned.

    Do tell me if this works for you. If all else fails, I would advise you to upgrade to WordPress 2.5.1 instead. It should solve this problem right from the beginning. Good luck!

  5. macappleboy says:

    Hi! Thank you so much for your detailed explanation. I hope that I can give you good news but I wasnt able to test uploading picture for I can’t even access my admin page. It gives me 500 Internal Server Error.

    I tried uninstalling and reinstalling WordPress and after Im done with it, it gave the error.

    I google solutions for this and found out that I have to download some plugins. Check this site: Check on Eric’s comment about how to activate a plugin in phpmyAdmin… I was able to access it but was not sure on how to activate or do his instructions…


  6. macappleboy says:

    I didn’t know what happened but here. I was actually on my way to uninstall again WordPress in fantastico until I thought to click on visit site thinking it will give me way to upgrade WP to 2.5.1 since fantastico can detect only 2.5… As I click on it, voila my site pops up without “Internal Server Error”. A miracle… tried logging in to admin and it pops right away.. I imported my files and tried uploading pics, guess what? ITS WORKING!!! Thank you so much!!! If its not with you, Im stressed out still… Thanks again!

  7. Jacky Yong says:

    Weird problem indeed. Anyway I’m glad it worked out for you. 😉

  8. Paula says:

    Thanks so much for this info. I have justed started working on my site and couldn’t upload any images to any of the posts in either Explorer or Firefox. This worked perfectly. Thanks!!

  9. I just wanted to thank you for going through the motions with visuals. I too was having the same error message, even though I am using the most recent version of WP (2.5.1)

    I modified the htaccess as you suggested, and voila! All’s well. phew..I was worried. 😉

  10. Ricardo says:

    Worked for me, using WP 2.9.2 in Spanish.

    I was randomly getting the “HTTP error” when uploading with the Flash uploader, and “Internal server error” when uploading with the “Browse” button (the normal way).

    Now is all solved, thank you!