Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin

WordPress 2.5 features a new media (including image, video and file) uploader that built on Adobe Flash technology which supports multiple files uploading to the gallery at one time and upload progress indicator bar. Unfortunately, the media uploader has numerous bugs and problems, which basically make the Flash uploader not working, or not successfully uploading the files.

There are a few symptoms for the broken Flash uploader error. For example, blogger can adds the files to upload, but nothing happen or progress to upload the selected files. Sometimes the upload process manages to get to “Crunching” but stop working after, or comes out with HTTP error, or even worse, freeze and crash the browser to not responding. Other reported problems including the the add media buttons disappearing or not showing up.

WordPress Support has listed several steps to check and fix the possible problems that cause user cannot upload photos, images, videos, music and other media files in WordPress 2.5. If the Flash based media uploader does not work after whatever effort, workaround and solution been done, including some bug fixes, such as disable conflicting plugin and bypass mod_security to try to solve the error and issue, there is a plugin to force disable (or later re-enable) the Flash uploader.

To enable the Flash media uploader to be disabled via plugin, a filter has to be added to Flash uploader (only on WordPress version 2.5.x, as the change is set to implement in milestone version 2.6). To do so, edit the \wp-admin\includes\media.php file using your favorite text editor directly by logging in to server or locally (has to be uploaded and overwrite replaced the original media.php file). Change the following code at around line 765 to 770.

Before:
$flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php";

// If Mac and mod_security, no Flash. :(
$flash = true;
if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') )
$flash = false;

After:
$flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php";

$flash = apply_filters('flash_uploader', true);
// If Mac and mod_security, no Flash. :(
$flash = true;
if ( $flash && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') )
$flash = false;

Then, download the no-flash-uploader.php, and upload the PHP file to \wp-content\plugins\ directory, and activate the plugin via WordPress administration page. After activating to disable the Flash media uploader, the uploader will no longer make use of Flash technology, and all advanced features that come with it also been disabled.



16 Responses to “Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin”

  1. Denis
    June 20th, 2009 03:03
    16

    This was really helpfull. Thanks !

  2. Michele
    April 2nd, 2009 09:11
    15

    grazie mille, questo post è stato provvidenziale!

  3. kookimebux
    February 2nd, 2009 01:44
    14

    Hello. And Bye. :)

  4. Rene Hasprunar
    December 13th, 2008 21:15
    13

    Here is the fix that worked for me.

    fryewiles
    Member
    Posted 12 hours ago #

    I had the same problem, and I was able to fix it by reuploading:

    /wp-includes/js/swfupload/

    And then clearing my browser cache.

  5. Tien Do Xuan
    November 17th, 2008 20:08
    12

    After should be:
    $flash_action_url = get_option(’siteurl’) . “/wp-admin/async-upload.php”;

    $flash = apply_filters(’flash_uploader’, true);
    // If Mac and mod_security, no Flash. :(
    if ( $flash && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), ‘mac’) && apache_mod_loaded(’mod_security’) )
    $flash = false;

  6. Taras Di
    October 1st, 2008 23:25
    11

    The above instructions do not work for me… the flash uploader still gets called.

    I noticed, by debugging the code, that by the time the function that you edit in your instructions gets called, the browser is already displaying the ‘loading upload form’ bar (ie: the screen has turned black).

    I’ve tried clearing the cache, and I’m using FF3.. any ideas on what could be going wrong?

  7. sage
    June 9th, 2008 21:28
    10

    It was much easier to revert to the previous version of wordpress, however, I have another problem.( I still cannot imbed video. . .) I design the photos to be a specific size on the blog page but have found that the uploader puts an ‘alt’ size into the html that takes precedence in the presentation, unifying all the photo sizes to a smaller format. When I finish writing, I have to go back through the code and remove all the ‘alt’s from the code so that all is seen as I planned when I publish.

  8. Mario
    June 9th, 2008 18:51
    9

    Is it possible to totally remove the media buttons from the Write Post page? I don’t want users to use or even see these things. I also want to remove the text editor buttons too!

  9. Upload Problems with Wordpress 2.5 | Batang Yagit
    May 10th, 2008 16:21
    8

    [...] to a blog post I found, “…the media uploader has numerous bugs and problems, which basically make the [...]

  10. admin
    April 21st, 2008 15:11
    7

    Have you tried to re-upload wordpress files? Probably some files have corrupted.

  11. sage
    April 21st, 2008 14:04
    6

    I have just folowed all of your instructions and I am still getting this error: Fatal error: Call to undefined function wp_constrain_dimensions() in /home2/newyorka/public_html/wp-admin/includes/image.php on line 173

    I have altered the htaccess to turn of the mod thing and nothing has worked on my Mac (10.5) in safari or FF
    Anything else I can do?
    thanks

  12. admin
    April 20th, 2008 00:52
    5

    What error message you have?

  13. warriorfr
    April 20th, 2008 00:49
    4

    Thank you very much !
    Now I can send files, but I still get the same error message I have with IE7.
    However even with this error, the upload works.

  14. Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin (Excerpt) » My Digital Life
    April 17th, 2008 10:55
    3

    [...] reading Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin at Tip and [...]

  15. Tambayan.ph » Fix the media uploader when using IE7 on the latest WordPress 2.5
    April 4th, 2008 12:03
    2

    [...] an alternative you can just disable the media uploader and revert to the old one via a plugin. Or just use Firefox and wait for WordPress [...]

  16. Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7 » Tip and Trick
    April 3rd, 2008 11:18
    1

    [...] If using the Flash uploader is too much trouble, disable the Flash media uploader with this plugin. [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to Tip and Trick Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

Incoming Search Terms for the Article

wordpress crunching - wordpress disable flash uploader - wordpress disable flash upload - wordpress flash upload - wordpress flash uploader - crunching wordpress - disable flash upload wordpress - flash upload wordpress - wordpress image upload plugin - wordpress uploader - uploader - no-flash-uploader.php - Flash Uploader wordpress - disable flash uploader wordpress - wordpress media uploader - wordpress media upload plugin - wordpress crunching http error - disable flash uploader - wordpress no flash uploader - wordpress image upload crunching - wordpress Crunching… - wordpress 2.5 disable flash uploader - wordpress no flash upload - wordpress upload crunching - wordpress 2.5 flash - disable wordpress flash upload - wordpress upload flash - flash image uploader - wordpress 2.5 disable flash upload - No Flash Uploader - no flash uploader wordpress - media uploader - wordpress flash image - disable flash upload - wordpress image crunching - wordpress upload plugin - disable wordpress flash uploader - wordpress 2.5 crunching - wordpress media upload broken - wordpress disable flash - wordpress enable flash uploader - wordpress and flash - wordpress upload media - wordpress 2.5 add video - wordpress upload image crunching - no flash upload plugin - wordpress disable flash upload plugin - wordpress flash uploader http error - wordpress flash upload disable - video uploader - wordpress image uploader plugin - wordpress disable flash image upload - wordpress 2.5 crunching error - no flash uploader plugin - disable wordpress 2.5 image uploader - crunching http error - all - wordpress flash image plugin - media uploader wordpress - wordpress disable upload - wordpress flash uploader problem - wordpress flash uploader disable - wordpress 2.5 flash uploader - wordpress - wordpress image upload http error - wordpress image upload broken - wordpress crunching problem - wordpress 2.5 image crunching problems - flash uploader - wordpress upload video - wordpress disable video upload - disable flash upload in wordpress - wordpress flash upload error - image upload plugin wordpress - wordpress disabling flash upload -