Wordpress 2.5 Image Upload Error [Wordpress Fix]

Advertisement

wordpress image upload error

The new Wordpress 2.5 is great, especially it’s new approached used to handle images upload. However some Wordpress users might encounter problems uploading images, getting stucked with error messages similar to the following:

  • HTTP error
  • An error occurred in the upload. Please try again later.

If you fail to upload images with the error messages above, here’s a fix for it. Prepare your favorite text editor, FTP program (or shell terminal) and following these following steps:

Step 1

Using FTP, or shell terminal navigate to the root of your WP folders. Download .htaccess and open it with text editor. If there isnt any .htaccess file, create one.

where is .htaccess

Step 2

Insert the following script into .htaccess.

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

If there’s existing script inside your .htaccess, just put the code above below it.

insert fix here

Step 3

Save, and upload to replace your current .htaccess. Go to Wordpress admin, you should be able to upload your image now.

Related Contents

Sponsors

Posted by hongkiat in Wordpress, Wordpress Tips Tricks , at 04.03.08

Tags: , , , ,

Comments

  1. eL April 3rd, 2008

    Weird i do not have this problem with uploading image. but i wish to have multiple image upload rather than just one by one upload. Thanks for sharing this tips!

    Reply
  2. Al April 4th, 2008

    Thanks very much for putting it in such an easy, simple to follow way with pictures for the terminally stupid like me. It was a big help.

    Reply
  3. David April 4th, 2008

    Good guide although this fix doesn’t seem to work for every configuration – I found another guide which did the trick for me – http://nineteenhundredandyesterday.com/?p=103

    Reply
  4. Chris April 4th, 2008

    You’re a LIFESAVER. This problem has been bugging me since I tried out the first RC of WP 2.5 and was actually the reason I downgraded to 2.3.3 again. I mean, what’s the point of an image gallery if you can’t upload?

    Thanks a LOT! :)

    Reply
  5. Kay April 4th, 2008

    what’s the reason behind this error?

    Reply
  6. Noddegamra April 4th, 2008

    Thanks for this fix! It was so frustrating.

    Reply
  7. Olly Newport April 6th, 2008

    THANK YOU for this, I was wondering what the heck was going on.

    Reply
  8. Piroman April 7th, 2008

    Thanx, it helped, though only for Mozilla Firefox.

    Reply
  9. BlogBucks [dot] net April 7th, 2008

    Thank you for this guide. I experienced this problem and because of your help, everything is now ok .Thanks again.

    Reply
  10. BlogBucks [dot] net April 7th, 2008

    Ouch. I got a problem after entering that script. Every link in my blog is error.. PLease help :D

    Reply
  11. BlogBucks [dot] net April 7th, 2008

    Ow. I already fixed it.. sorry for over commenting.. i’m not a spammer.. :D i’m just in panic :D

    Reply
  12. Ernesto April 8th, 2008

    Thanks for the fix. :-)

    Reply
  13. don April 8th, 2008

    Thank you mate.. i got image uploading problem but now it solves after i found your tip.

    Reply
  14. Greg April 9th, 2008

    Thank you!!!!!!!!

    Reply
  15. LangChiaPek April 9th, 2008

    Thanks for the tip, it helped

    Reply
  16. Pashalex April 10th, 2008

    I am trying to install a new theme in word press 2.0 but any theme i chose it comes up with an error “Broken Theme” and “style.css is unreadable”.
    Any comments much appreciated.

    Reply
  17. kita April 10th, 2008

    i cant activated plugin..fatal error..how i can do it ?

    Reply
  18. JR April 12th, 2008

    I tried this and it did not work until I upgraded my “Bad Behavior” plug in. Now images upload without a problem.

    Reply
  19. William April 13th, 2008

    Thanks for the fix, this has been a major pain to try to deal with.

    Reply
  20. Steve April 13th, 2008

    This method does not work for me. I am working with an upgrade. But that seemed to go smoothly overall. How could this glaring problem exist?

    I think I did this correctly, but it still fails. Would someone be willing to see if I have the .htaccess code correct, if I were to send it? I am adding the revised code using Notepad ++

    Steve

    Reply
  21. marcelo cannobbio April 14th, 2008

    Thank you! works perfect.
    I’m on a hostgator reseller server, running wp2.5

    ;)

    Reply
  22. allenooi April 15th, 2008

    it fixed my problem! hongkiat.com rocks!! Thanks!

    Reply
  23. nel April 15th, 2008

    you are the best!

    Reply
  24. Visi April 15th, 2008

    Yo MAN !!this fix rulezzz:D:D:D: 10x a lot

    Reply
  25. Lukatoll April 15th, 2008

    hey does anyone know whats wrong with mine? whenever i try to upload it always say specified file failed upload. Ive tried everything from resizing to changing the format.
    Any help would be appreciated.
    Thanks!

    Reply
  26. Knocksense April 15th, 2008

    Thanks for the tip. Very helpful!

    Reply
  27. Garden Pixie April 19th, 2008

    Thank you so much for this fix. I just got my blog up and running today and when I tried to upload my pictures, I got this same error message and my heart sank. Your fix worked like a charm and now things are running smoothly. Thanks again. :)

    Reply
  28. Mike April 23rd, 2008

    Thanks for the fix – this worked really well in under 3 minutes!!!

    Reply
  29. mandy April 24th, 2008

    When I upload a picture it only fills in the picture name in the BOX; but not the picture URL.

    I’ve tried the above but it seems the uploader is not picking up Picture URL.

    Any ideas what this might be?

    mandy

    Reply
  30. scamboy April 26th, 2008

    Got it fix now….

    Thanks man…

    Reply
  31. Nizmoe April 27th, 2008

    This was a huge help, thanks!

    Reply
  32. Hardik (Mobile Tech Blog) April 29th, 2008

    Thanks a ton.. worked for me

    Reply
  33. Jammers April 30th, 2008

    Does not work for me.

    Reply
  34. Steve May 2nd, 2008

    Thanks so much for this. It’s been a frustrating night!

    Reply
  35. Rob May 2nd, 2008

    Super frustrating! Thank you.

    Reply
  36. exi May 3rd, 2008

    THANK YOU :)

    Reply
  37. Rocky May 5th, 2008

    This trick worked for me, thanks.

    Reply
  38. Darren May 6th, 2008

    Great tips, worked a treat. Thanks very much!

    Reply
  39. Seba May 6th, 2008

    It works! Easy and simple tip to solve a big problem. Thanks :)

    Reply
  40. RDude May 9th, 2008

    This didn’t work at all. I followed all the instructions too. Thanks anyway though. I appreciate the effort. WP 2.5 is just nothing but problems if you ask me. I was quite happy 2.3.1 to be honest. At least I could upload a simple picture for crying out loud. My 2.5 blogs didn’t even have an .htaccess file. I had to create one for all them. How messed up is that?

    Again…thanks for your efforts.

    Reply
  41. sveden May 9th, 2008

    Worked like a charm! Thanks a lot.

    Reply
  42. Robert W May 11th, 2008

    Yay, it worked! Thanks!

    Reply
  43. Sukosaki May 12th, 2008

    Worked perfectly! Good work!

    Reply
  44. Chris May 13th, 2008

    Brilliant! I was banging my head on the desk over this one. Now working fine. Thanks.

    Reply
  45. 1Earth May 14th, 2008

    I spent 3 days trying combinations of plug-ins to try and solve this problem as it doesn’t work on my main blog, but a blog hosted in a sub-domain does.

    Thanks for the 1-2-3 steps, exceptionally done. What a relief!

    Reply
  46. Bburman May 14th, 2008

    Ok, I did this and now I get the following error:

    The precondition on the request for the URL evaluated to false

    Reply
  47. Henry May 14th, 2008

    I used the fix and it word when I went back to my .htaccess file the inserted text you created was gone. I have done this multiple times and it will not save in the .htaccess file. It is weird. I put your text in save it go back to wordpress and it lets me upload. BUt when i go back to the .htaccess file your text is gone. Any ideas??

    Reply
  48. Billy May 18th, 2008

    Worked for me. Thanks.

    Reply
  49. Solomonc May 18th, 2008

    Your solution work brilliantly for me as I am also having the same problem using WP2.5.1.

    Reply
  50. Andy May 18th, 2008

    Thank you :-)

    Reply
  51. tschörda May 19th, 2008

    excellent! works like a charm! thx!

    Reply
  52. Nolawi May 20th, 2008

    Thank god someone explained this, i have been looking for a solution for a month now… thank you

    the WP support is so lame these days

    Reply
  53. kocu May 20th, 2008

    been waiting for some time for an official help. I’m not sure at first to test your solution, but I’m glad I decided to go for it. That’s a great help you’ve helped me with. Thanx.

    Reply
  54. Chris May 22nd, 2008

    Thanks — that fixed the problem immediately!

    Reply
  55. Mark May 25th, 2008

    Thanks! It worked! I finally have images on our blog!

    Reply
  56. sorin May 25th, 2008

    i have a problem, i inser the cod in .httaccess, and the upload work but after some time, don t work again and the cod from .httacces disappears. Why?

    Thanks

    Reply
  57. Machine May 25th, 2008

    Thanks a lot mate. I was pulling my hair out with the problem. I though it has something to do with my ISP or chmod setting. Glad that I found this blog.
    Thanks a ton.

    Reply
  58. Matt Thornton May 26th, 2008

    Perfect, worked for me. Many thanks.

    Reply
  59. Ronny-André May 27th, 2008

    This didn’t do it for me. I’ve tried every trick there is out there, but nothing does it for me :(

    Reply
  60. Phillip May 27th, 2008

    Awesome fix! Thanks a lot!

    Reply
  61. sinus May 28th, 2008

    thanks for that fix. great help!

    Reply
  62. Malinthe May 31st, 2008

    Wow thanks! You’re a Lifesaver! :)
    Got this image uploading problem after I changed my server. Now it’s working great. Thanks again!

    Reply
  63. Alan Cordle June 2nd, 2008

    I get the same error as #71 above. The image now “crunches,” but when I try to insert into a post, the error message is:

    Precondition Failed
    The precondition on the request for the URL /blog/wp-admin/media-upload.php evaluated to false.

    Apache/1.3.37 Server at alancordle.com Port 80

    I’d appreciate any ideas.

    Thanks.

    Reply
  64. Rebecca June 5th, 2008

    Worked like a charm! Thanks!

    I was worried i had done something wrong with the upgrade, glad to know it wasn’t just me :).

    Reply
  65. Sveden June 6th, 2008

    Oh mai goodness! Thanks so much this worked like a friggin charm.

    Reply
  66. Kevin June 6th, 2008

    Works for me! Thanks!!

    Reply
  67. Crystalline Tulip June 9th, 2008

    Thank you SO MUCH!!! I’ve been very frustrated and now my images upload perfectly.

    Reply
  68. webmaster sitesi June 10th, 2008

    CHMOD to 777

    Reply
  69. John June 12th, 2008

    My host doesn’t allow me to turn off mod security in .htaccess and commented it out. So I am still fucked with IE. But when I use Firefox, I can upload pictures. Strange.

    Reply
  70. Steve June 15th, 2008

    Worked like a charm. Thanks a bunch!

    Reply
  71. Dave June 21st, 2008

    Now i have the same precondition failed error as posters 46 and 63 when i try to ‘insert into post’.

    Does anyone have a solution for this? please!!!

    Reply
  72. Dave June 22nd, 2008

    Found a fix for the precondition failed error…
    Just type this in your .htaccess file:

    SecFilterEngine Off
    SecFilterScanPOST Off

    Reply
  73. Dave June 22nd, 2008

    sorry, the last post didn’t show up correctly…

    just remove the “files async-upload.php” and “/files” tags and it should fix it.

    Reply
  74. Flash Buddy June 22nd, 2008

    Interesting to see so many success stories yet for a few, including myself there is no joy.

    In my case the file appears to upload successfully with no http error yet the upload box then displays the WordPress login screent?! No ability to add title, description etc; and the photo does not appear in the gallery. Go figure?

    Reply
  75. joe c June 23rd, 2008

    Many Thanks

    Reply
  76. patrick June 26th, 2008

    For those who get the Wordpress login, you may want to look what is the name of the website you used during configuration. I.e. did you use http://www.yourdomain.tld or yourdomain.tld you can find this by going to your admin interface, click on settings under general you will find the: WordPress address URL ; you should logout of your admin area, and login at the EXACT url given in that field.

    This also has to do with some protections on a server; while it is a pain, it might even be worse if these security settings are not in place. Hope this helps!

    Reply
  77. centrinads June 27th, 2008

    This bugs is only happen if you use IE browser. Default wordpress 2.5 configuration works very fine with Firefox.
    Aside by putting your head to the wall adding the code to .htaccess file and so, why not change your browser to firefox? Much more easy and you can upload your images file without any problem!

    http://www.centrinads.com/wordpress/wordpress-25-images-uploaded-error-with-ie/

    Reply
  78. dara June 27th, 2008

    I love you!!

    Reply
  79. Jo June 29th, 2008

    why on earth WP’s official DOC didn’t mention this thing ??? heck.. i search around its site.. they just ask me to CHMOD wp-content,upload folder to 777. it didn’t help …

    your snippet code is awesome..
    wondering .. is it safe putting that in our .htaccess ?

    Reply
  80. Eric June 29th, 2008

    Pour moi ça marche très bien (version 2.5.1) MERCI!!!!

    Reply
  81. Angeleyes July 9th, 2008

    I have a few blogs and they are of different WP versions as I dare not update them until the latest version is more stable… not apparent bugs.

    Since the htaccess is in the main directory, if I change it, will it affects my older WP versions blogs?

    This is driving me nuts! :|

    Reply
  82. Aria July 9th, 2008

    Thanks so much for tips to fix those error..

    Regards,

    Aria

    Reply
  83. Bert July 11th, 2008

    Did you put the link to the uploaded picture into the custom field called thumbnail? If you don’t know what this is about, read the comments on the site where you got the theme.
    1 you have the create a custom field called thumbnail
    2 with every post you have to select the thumbnail field and put a link into this field which leads to a uploaded image file.
    So first you need to have one or more uploaded images and select the link to one of them in the media library.
    This link you put in the thumbnail field of your posting.

    Reply
  84. bert boan August 13th, 2008

    I’m a different bert, not the guy above. What are the odds of that happening???

    Thanks for the fix. Got to you from Google. Thanks for the easy to understand help.

    Reply
  85. Shan September 1st, 2008

    I have the same problem and I dont have the .htaccess file in the root folder.

    Reply
  86. tommy September 26th, 2008

    why i can’t import my WP http://www.infoterbaik.com from http://www.thebestinfotech.blogspot.com , i think has been right install and all procedure, please help me. thx a lot before.

    Reply
  87. toneee October 7th, 2008

    Good job. This is a quick fix. :)

    Reply
  88. tzs November 5th, 2008

    hm, i think im a bum or something worst, but IT IS NOT WORKING FOR ME! I wrote a lots of forums, posts comments, try those solutions, but its a piece of sh*t.

    WHYYY???

    Reply
  89. zoolo BOY November 12th, 2008

  90. Eric Lau December 5th, 2008

    I have this problem when I switch my server. ( Exabytes ).
    I copy and paste all the code stated by hong kiat and it didnt solve my problem. Than I try another way and I found the solution. Hong Kiat code is correct, is just that some of your original .htaccess code is messing with it. If you already have this file, please add in only this code : SecFilterScanPOST Off , at the last 2nd line. ( before # END WordPress ). This is the complete code I use for my wordpress.

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    SecFilterScanPOST Off
    # END WordPress

    Reply
  91. shree February 20th, 2009

    Really thank you, thanks a lot..
    you have saved my time..

    Reply
  92. michele March 25th, 2009

    hi there,
    myabe i’m stupid, but i don’t know how to open the htacess file and add the code you’ve listed.
    i got into my ftp program and found the htaccess , but i don’t know how to go from there.
    do i right click on it?
    when i right click on it, i don’t get the option to open it with a text editor.

    any advice would be grealty appreciated.

    michele

    Reply
  93. drmony May 31st, 2009

    ya thts true while i was seraching another problem

    Reply
  94. Tal Galili June 8th, 2009

    Thanks a lot for your fix – just solved my issue with it :)

    Tal

    Reply

Trackbacks

  1. El Blog de Daniel » Blog Archive » Wordpress 2.5; Error al cargar Imágenes
  2. Fix for Wordpress 2.5 Upload Error : Powervortex:blog
  3. WordPress 2.5 unter der Haube / FileUpload im Arsch | Phase 5
  4. » Errore caricamento immagini in Wordpress 2.5 » Blogg ‘R
  5. zwolin on-line » WordPress 2.5 i upload plików
  6. Correção para erro no upload de imagens (WordPress 2.5) | pBlog
  7. Ganhar-online.com está a usar wordpress 2.5 | Ganhar-Online
  8. 24th Birthday | SubSanity's Asylum
  9. macboyx.com - being boring
  10. BLOG it with ALLEN » Blog Archive » Wordpress 2.5 - Problem and Fix
  11. WordPress 2.5 Güncellemesi | erdem çorapçıoğlu
  12. Xekm » Blog Archive » Wordpress 2.5 File Upload Error: “HTTP Error”
  13. Wordpress 2.5 Image Upload Error [Wordpress Fix] | Telecommunications & Internetworking
  14. Wordpress 2.5.1-alpha, par erreur
  15. Passage à Wordpress 2.5… | Imagin'air Blog
  16. Problemi con upload immagini in Wordpress 2.5 | Aggregator
  17. Blog // icswings.com » Blog Archive » Wordpress 2.5.1
  18. Wordpress 2.5 Image Upload I/O Error
  19. Dando la chapa » Blog Archive » Tengo un Windows pirata
  20. The Uploaded File Could Not Be Moved To [Unsolved] | { thou shall blog }
  21. Uncle Matty’s Blog » Blog Archive » Getting Images to Upload…
  22. Wordpress 2.5 Image Upload Error [Wordpress Fix] | JaideawHosting Admin Blog!
  23. Solución del error al subir una imagen en Wordpress 2.5 | Thuer.com.ar
  24. The Uploaded File Could Not Be Moved To [Unsolved] | A Beginner's Blog For Beginners
  25. The Wonders of Collaborative Problem Solving and Sharing… | Construct ICT...
  26. valerio.net » Blog Archive » Wordpress Image Upload Error
  27. Fix wordpress image upload http error
  28. Quick Fix For Uploading Images in Wordpress 2.5 | just a girl... and her rambling thoughts
  29. Dan Philibin » Blog Archive » File Upload fix for WordPress 2.5
  30. Alltagsdepressionen » Bilderuploadwahn!
  31. The wordpress image uploader problems - Netpond
  32. Solucionar el error “HTTP error” en Wordpress 2.5 | Punto Geek
  33. WordPress 2.5 image upload error | [mck]
  34. http error upload image wordpress while crunching
  35. Building My Empire » Blog Archive » Happiness is WordPress Hacks
  36. Wordpress Image Upload Error | weheartwp.com
  37. Installing WP: Fantastico or from scratch? - Netpond
  38. Ticket Desk Pro - Help Desk Software. | 7Wins.eu
  39. morfina il "bug 2.5 HTTP error e file .htaccess"
  40. Bishal Shrestha » Wordpress 2.5 Image Upload Error [Wordpress Fix]
  41. Administrative Faculty Theme » A funny error happened on the way to an upload
  42. Xwordpress.com » Blog Archive » HTTP error on insert image with WP2.5 version
  43. Wordpress 的錯誤訊息: You don’t have permission to access post.php … | Vixual
  44. wordpressdirect plugins - Thirty Day Challenge Forums
  45. HTTP Error In Wordpress 2.5 Uploading Image | MarketAssociate dot com
  46. Wordpress 2.5 Image Upload Error [Wordpress Fix] | Chuyện
  47. ./cmsimike » Blog Archive » Wordpress 2.5 File Upload Error: “HTTP Error”
  48. Solution For WordPress Uploading Image Problem | Exploring The Internet
  49. Wordpress Image Upload Error Fixed :: Mint Condition Studios
  50. BLOGGER2000.com - HTTP error on insert image with WP2.5 version

Leave a reply