﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
20410,Introduce a function to detect a device's ability to upload files,johnbillion,azaozz,"Precursors: #20100 and #20405.

Some browser/OS combos don't allow files to be uploaded. The most common of these is Mobile Safari on iOS.

We should introduce a function which tells us if a given device is capable of uploading files. We can then use it in place of some of the `wp_is_mobile()` calls (which were introduced in [20417] to replace the `$is_iphone` global) where we need to hide certain UI elements relating to file uploads.

I propose a conditional function such as `device_can_upload()` that defaults to a return value of `true` but returns `false` for known browser/OS/device combos that can't upload files. Browser sniffing is bad of course, but there's no other way to do it.",enhancement,closed,normal,3.4,Media,3.4,normal,fixed,ux-feedback,
