[wp-trac] Re: [WordPress Trac] #6979: Flash Player 10 breaks the media uploader

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 22 18:31:58 GMT 2008


#6979: Flash Player 10 breaks the media uploader
---------------------+------------------------------------------------------
 Reporter:  tcloer   |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.7      
Component:  General  |      Version:  2.6      
 Severity:  major    |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by Otto42):

 Hmmm... given that Flash 10 is horked up and likely to stay that way, it
 might be worthwhile to switch to it, or at least to add it as an option if
 the user has the Gears capability installed.

 Uploading a file with gears seems to be straightforward enough. Something
 along these lines, but obviously more complex:
 {{{
 var desktop = google.gears.factory.create('beta.desktop');

 function callback(files) {
         for (var i in files) {
                 //files[i].name is the filename
                 //files[i].blob is the content of the file

                 var request =
 google.gears.factory.create('beta.httprequest');
                 request.open('POST', 'admin-ajax.php');
                 request.onreadystatechange = function() {
                         if (request.readyState == 4) {
                                 // upload is complete
                         }
                 };
                 request.send(files[i].blob);

                 // some kind of code to make it wait for the complete
 signal
         }
 }

 desktop.openFiles(callback);
 }}}

 And so on. Look here if somebody wants to take a stab at it, I might
 later: http://code.google.com/apis/gears/api_httprequest.html

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6979#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list