• Hi

    My heavily modified WordPress site has developed a confusing glitch involving the uploads facility of the ‘Add media:’ option.

    I have set my site up with 10 users who can each post to their own journal using the handy ‘Bind user to category’ plugin. All has been working fine since I made the site live and did a hands-on session with the users, but now some have reported that when they click ‘Choose file to upload’ it doesn’t open the dialogue box that allows you to explore your computer to select the file to upload.

    It turns out that it has stopped working for those using Windows XP and Windows Vista, on either IE7 or Firefox. This is the majority of my users, who are teachers based in schools, so no smart-alec comments along the lines of “get ’em to use Safari on a Mac” please.

    It works okay for me on my Mac with Firefox, and I tested it extensively on a Windows XP PC in both IE7 and Firefox during development. The hands-on session was in my institution using IE7 on Windows XP, and that worked fine too.

    Somehow, something has gone awry in the past few weeks. I am very confused as to how this problem could’ve come about as I haven’t touched the code since I made it live in October 2008.

    Anyone have any ideas? This is not an issue that is listed on the forum sticky about file uploading.

    I was wondering… does the ‘Add media:’ option use javascript held on a central WordPress server and it has been updated beyond my control or something? Or has there been some kind of update to Windows that might have messed up the functionality?

    I am using version 2.5 of WordPress. I am currently unable to upgrade to a newer version as I have heavily modified the code to fit the way the site needed to work, and have since lost my personal developer notes!

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter martianrobot

    (@martianrobot)

    Okay, I think I’ve sussed out the cause of it by looking at the source code for the upload window, though I’ve not yet worked out the solution.

    The ‘Choose file to upload’ button is (bizarrely) Flash based, and it automatically overides the HTML option to upload.

    It has been reported that if people upgrade to Flash Player 10 then Flash buttons on the WordPress website might stop working for them. Which must be what has happened to my users… and why it still works for me, as I haven’t bothered updating my Mac’s Firefox to Flash 10 yet.

    Now all I’ve got to do is try to find out how I can disable the Flash button for the upload! Any pointers anyone? It’s probably something to do with the following code, but I’ve got to try suss out where this is generated!

    <script type="text/javascript">
    <!--
    jQuery(function($){
    	swfu = new SWFUpload({
    			upload_url : "http://www.ra3.org.uk/site/wp-admin/async-upload.php",
    			flash_url : "http://www.ra3.org.uk/site/wp-includes/js/swfupload/swfupload_f9.swf",
    			file_post_name: "async-upload",
    			file_types: "*.*",
    			post_params : {
    				"post_id" : "-1231866471",
    				"auth_cookie" : "admin|1232034367|f3fb643bb277f55bc24150b2f054dda1",
    				"type" : "image",
    				"tab" : "type",
    				"short" : "1"
    			},
    			file_size_limit : "8388608b",
    			swfupload_element_id : "flash-upload-ui", // id of the element displayed when swfupload is available
    			degraded_element_id : "html-upload-ui",   // when swfupload is unavailable
    			file_dialog_start_handler : fileDialogStart,
    			file_queued_handler : fileQueued,
    			upload_start_handler : uploadStart,
    			upload_progress_handler : uploadProgress,
    			upload_error_handler : uploadError,
    			upload_success_handler : uploadSuccess,
    			upload_complete_handler : uploadComplete,
    			file_queue_error_handler : fileQueueError,
    			file_dialog_complete_handler : fileDialogComplete,
    
    			debug: false
    		});
    	$("#flash-browse-button").bind( "click", function(){swfu.selectFiles();});
    });
    //-->
    </script>
    
    <div id="flash-upload-ui">
    	<input id="flash-browse-button" type="button" value="Choose files to upload" class="button" />
    
    	After a file has been uploaded, you can add titles and descriptions.
    
    </div>
    
    <div id="html-upload-ui">
    
    	<input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="Upload" /> <a href="#" onClick="return top.tb_remove();">Cancel</a>
    
    	<input type="hidden" name="post_id" id="post_id" value="-1231866471" />
    	<br class="clear" />
    	</div>

    Thanks and regards

    Thread Starter martianrobot

    (@martianrobot)

    Okay, I’ve found a bug ticket about this…

    http://trac.wordpress.org/ticket/6979

    Seems I was right about Flash 10 in my previous post. Now all I’ve got to do is try to work out how to apply these bug fixes to my site.

    It appears I may have to upgrade to 2.7 but I’d really appreciate it if anyone can help me try to get it working in my modified 2.5 install.

    Thanks.

    I was having a similar issue. The two things I did to fix this was:

    (1) enabled “clear cache every time you close firefox” in Firefox browser options.
    To do this:
    [menu options – privacy – click “settings” under “always clear my private data” – check the box for “cache”]

    (2) deleted Flash 10 under add/remove programs

    Not sure which one provided the fix, as both steps have been recommended for fixing the problem, but this should fix everything if you are using Firefox.

    I have the latest version (3.0.6) by the way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add media: ‘Choose file to upload’ stopped working on Windows’ is closed to new replies.