WPDev.one
Core Function
View Source on Trac ↗

check_upload_size()

check_upload_size( mixed $file )

Determines whether uploaded file exceeds space quota.

Parameters 1 required

Name / Type Description
$file
array

An element from the `$_FILES` array for a given file.

Required

Return Value

(array)
The `$_FILES` array element with 'error' key set if file exceeds quota. 'error' is empty otherwise.

Function Information

Since Version
3.0.0
Source File
wp-admin/includes/ms.php
Advertisement