WordPress at a glance
function is not described

_device_can_upload() WP 3.4.0

Test if the current device has the capability to upload files.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

true|false. Whether the device is able to upload files.

Usage

_device_can_upload();

Changelog

Since 3.4.0 Introduced.

Code of _device_can_upload() WP 5.7

<?php
function _device_can_upload() {
	if ( ! wp_is_mobile() ) {
		return true;
	}

	$ua = $_SERVER['HTTP_USER_AGENT'];

	if ( strpos( $ua, 'iPhone' ) !== false
		|| strpos( $ua, 'iPad' ) !== false
		|| strpos( $ua, 'iPod' ) !== false ) {
			return preg_match( '#OS ([\d_]+) like Mac OS X#', $ua, $version ) && version_compare( $version[1], '6', '>=' );
	}

	return true;
}