[wp-trac] [WordPress Trac] #11369: SSL breaks Flash media uploader

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 10 04:47:36 UTC 2009


#11369: SSL breaks Flash media uploader
--------------------------+-------------------------------------------------
 Reporter:  roothorick    |       Owner:                    
     Type:  defect (bug)  |      Status:  new               
 Priority:  normal        |   Milestone:  Unassigned        
Component:  Media         |     Version:  2.8.6             
 Severity:  normal        |    Keywords:  media upload flash
--------------------------+-------------------------------------------------

Comment(by aaron44126):

 If any devs read this, I am close to a workaround using a plug-in, but I
 need a little help.  This workaround would have file uploads NOT use SSL
 to work around the bug in Adobe Flash.

 I have FORCE_SSL_ADMIN enabled, so that administrative sessions have to
 run over SSL.  My goal is to allow wp-admin/async-upload.php, which is in
 charge of receiving the uploads from the Flash uploader, to be accessed
 from a non-SSL session.

 I added a filter to 'admin_url' to switch https:// to http:// if we are
 getting the URL to async-upload.php.  This tells the Flash uploader to
 connect via regular http to upload the file.

 I added a filter to 'wp_redirect' to cancel any redirect from http to
 https if async-upload.php is the page being loaded.  This keeps the Flash
 uploader from being bumped to SSL, even though I have FORCE_SSL_ADMIN
 enabled.

 Now, when I try to upload a file, instead of getting the vague "IO error",
 the file upload seems to go through (I see the progress bar complete, and
 then it says "Crunching..." for a few seconds) --- but when it's done,
 nothing happens.  I suspect this is because somewhere else, there is a
 check to see if I am using SSL, and I'm not, so it fails.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11369#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list