check_upload_size


check_upload_size ( $file )

Parameters:
  • (array) file An element from the `$_FILES` array for a given file.
Returns:
  • (array) The `$_FILES` array element with 'error' key set if file exceeds quota. 'error' is empty otherwise.
Defined at:

Description

Determines whether uploaded file exceeds space quota.

Related Functions

check_upload_mimes, wp_max_upload_size, media_upload_file, media_upload_image, media_upload_video

Top Google Results

User discussions

wpseek mobile