• There are a lot of topics on the new asynchronous uploader in WordPress 2.5, but none of them seem to cover my problem. I’ve installed 2.5 on a client server, and uploading media works, but it’s not using the new Flash uploader, instead it seems to fall back to the “old” way of uploading files for no good reason. Before anyone asks:

    1. Yes, cleared browser cache. ??
    2. Yes, tried different browsers, even different people and different computers/OS.
    3. Yes, I’ve tried an entirely fresh install (the other one was actually an upgrade) and still the new uploader does not appear.

    Weird thing is, the swfupload scripts are in the page (as far as I can tell, haven’t worked with swfupload myself yet)..

    <script type='text/javascript' src='https://www.domain.com/wordpress/wp-includes/js/swfupload/swfupload.js?ver=2.0.2'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    	uploadDegradeOptions = {
    		is_lighttpd_before_150: ""
    	}
    /* ]]> */
    </script>
    <script type='text/javascript' src='https://www.domain.com/wordpress/wp-includes/js/swfupload/plugins/swfupload.graceful_degradation.js?ver=2.0.2'></script>
    <script type='text/javascript' src='https://www.domain.com/wordpress/wp-includes/js/swfupload/plugins/swfupload.queue.js?ver=2.0.2'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    	swfuploadL10n = {
    		queue_limit_exceeded: "You have attempted to queue too many files.",
    		file_exceeds_size_limit: "This file is too big. Your php.ini upload_max_filesize is 10M.",
    		zero_byte_file: "This file is empty. Please try another.",
    		invalid_filetype: "This file type is not allowed. Please try another.",
    		default_error: "An error occurred in the upload. Please try again later.",
    		missing_upload_url: "There was a configuration error. Please contact the server administrator.",
    		upload_limit_exceeded: "You may only upload 1 file.",
    		http_error: "HTTP error.",
    		upload_failed: "Upload failed.",
    		io_error: "IO error.",
    		security_error: "Security error.",
    		file_cancelled: "File cancelled.",
    		upload_stopped: "Upload stopped.",
    		dismiss: "Dismiss",
    		crunching: "Crunching&hellip;",
    		deleted: "Deleted"
    	}
    /* ]]> */
    </script>
    <script type='text/javascript' src='https://www.domain.com/wordpress/wp-includes/js/swfupload/handlers.js?ver=2.0.2-20080407'></script>

    Does WordPress somehow disables swfupload on some servers? I’ve installed WP on quite a few other servers and they all handle uploading just fine, using swfupload like they’re supposed to.

    Any help is greatly appreciated. ??

Viewing 1 replies (of 1 total)
  • Thread Starter SimonK

    (@simonk)

    Well, I figured it out myself…

    WordPress disables swfupload for if you’re on a Mac and if mod_security is enabled. Don’t want to be rude bit I think this is kinda silly since there’s a small fix available to disable mod_security, and since this is nowhere documented or mentioned in the sticky on image uploading, although the sticky does mentions the .htaccess fix, which means the .htaccess fix won’t solve anything if you’re on a Mac.

    If you want to fix it, edit /wp-admin/media.php around line 759:

    // 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;

    Comment out the last two lines.

Viewing 1 replies (of 1 total)
  • The topic ‘AJAX/Flash uploading disabled on some servers?’ is closed to new replies.