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.
Related Articles
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5
- How to SEO Optimize WordPress 2.5 Blog Web Page Title Without Optimal Title Plugin
- Call To Undefined Function: ctype_digit() in WordPress 2.5
- Download Toggle Flash to Disable Adobe Flash in Internet Explorer 7
- WordPress 2.5.1 Released for Download
- PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2
- Call to Undefined Function get_currentuserinfo() Error in WordPress
- WordPress 2.5 Released for Free Download










































June 20th, 2009 03:03
This was really helpfull. Thanks !
April 2nd, 2009 09:11
grazie mille, questo post è stato provvidenziale!
February 2nd, 2009 01:44
Hello. And Bye.
December 13th, 2008 21:15
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.
November 17th, 2008 20:08
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;
October 1st, 2008 23:25
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?
June 9th, 2008 21:28
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.
June 9th, 2008 18:51
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!
May 10th, 2008 16:21
[...] to a blog post I found, “…the media uploader has numerous bugs and problems, which basically make the [...]
April 21st, 2008 15:11
Have you tried to re-upload wordpress files? Probably some files have corrupted.
April 21st, 2008 14:04
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
April 20th, 2008 00:52
What error message you have?
April 20th, 2008 00:49
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.
April 17th, 2008 10:55
[...] reading Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin at Tip and [...]
April 4th, 2008 12:03
[...] 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 [...]
April 3rd, 2008 11:18
[...] If using the Flash uploader is too much trouble, disable the Flash media uploader with this plugin. [...]