#22403 closed defect (bug) (fixed)
Prevent default browser behavior with Plupload disallowed file extensions
Reported by: | nacin | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.3 |
Component: | Upload | Keywords: | has-patch |
Focuses: | Cc: |
Description
See #22149. When Plupload is set to accept only certain file types, the drag event falls back to the browser's default behavior. That means HTML files replace the entire viewport, ZIP files get re-downloaded, etc. Ideally, our own handlers intercept such a drag event and prevents anything else from happening.
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
We could add some jQuery to the admin-header file to disallow drag and drop events. The following patch fixes it. I've tested the media upload page's drag and drop feature after applying the patch and this does not overwrite the functionality.