upload_is_file_too_big
upload_is_file_too_big ( $upload )
Parameters:- (array) upload An array of information about the newly-uploaded file.
Returns:- (string|array) If the upload is under the size limit, $upload is returned. Otherwise returns an error message.
Defined at:Change Log: - Introduced in WordPress: —
- Deprecated in WordPress: —
Description
Checks whether an upload is too big.