[wp-trac] [WordPress Trac] #37039: Cannot Upload New Media Via "Select Files" On Microsoft Edge Browser

WordPress Trac noreply at wordpress.org
Sun Jun 12 16:15:34 UTC 2016


#37039: Cannot Upload New Media Via "Select Files" On Microsoft Edge Browser
----------------------------+-------------------------
 Reporter:  dimensionmedia  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  4.6
Component:  Media           |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  javascript
----------------------------+-------------------------
Changes (by afercia):

 * focuses:   => javascript
 * version:  trunk =>
 * milestone:  Awaiting Review => 4.6


Comment:

 Confirmed and as far as I can tell it appears to be caused by at least two
 reasons:
 - seems in Edge the "Select Files" button doesn't have a click event
 attached, this appears to be more a plupload/Edge issue
 - on first page load, the "moxie-shim" hidden file input is misplaced (and
 this happens in all browsers), see screenshot below:

 [[Image(https://cldup.com/QCGpCFEIs3.png)]]

 I'm not so into the plupload internals but I think the "shim" is supposed
 to have a correct position in order to make plupload work in all browsers.
 The misplacement probably happens because the whole "drop zone" is
 initially hidden and doesn't have a "size" so plupload is unable to
 correctly calculate the absolute position to set on the "shim". Clicking
 on the "lightblue" area highlighted in the screenshot works.

 Even on the plupload examples page http://www.plupload.com/examples seems
 the click event is missing in Edge and the example there works just
 because the hidden "shim" is correctly positioned.

 Worth noting that switching to the "browser uploader" and then switching
 back to the "multi-file" uploader makes the "moxie-shim" have a correct
 position:

 [[Image(https://cldup.com/VUBnp_81RP.png)]]

 The part related to the event should be probably fixed upstream. In order
 to mitigate the issue WordPress should maybe change some CSS to ensure the
 drop zone has an initial size. I'd like to have a second opinion though.
 /cc @azaozz

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37039#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list