June 19, 2008

Image uploading broken on WordPress version 2.5.1

Using a Mac with firefox or safari, the uploading images using flash was dying on

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

in firefox and http error when crunching with safari.

The solution that worked for me REQUIRES two steps.

1. modification of .htaccess file
2. replacement of swfupload files with updated versions

first, the .htaccess file must go in the wp-admin folder
picture-8.png
the contents must contain:


AuthType Basic
AuthName share
Satisfy Any
Order deny,allow
Allow from all

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

What this does is disable the apache security module when uploading files. It does not work for
me without it.

Second step. Download the latest version of swfupload. For me this was SWFUpload-Core v2.1.0.Release.zip

picture-3.png
Find the folders in word press:
swfupload
picture-7.png

replace the files

  • swfupload.js
  • swfupload_f9.swf
  • swfupload/plugins
    picture-6.png

    replace files

  • swfupload.cookies.js
  • swfupload.graceful_degradation.js
  • swfupload.queue.js
  • swfupload.swfobject.js
  • Upload new files from SWFUpload v2.1.0 Core folder
    picture-10.png

    Remember to delete the browser cache because it may be using the old versions of the files stored there.

    No Comments »

    No comments yet.

    RSS feed for comments on this post. | TrackBack URI
    You can also bookmark this on del.icio.us or check the cosmos

    Leave a comment

    You must be logged in to post a comment.