WP_REST_Attachments_Controller::check_upload_size

SummerySummery

Determine if uploaded file exceeds space quota on multisite.

Syntax

WP_REST_Attachments_Controller::check_upload_size( array $file )

DescriptionDescription

Replicates check_upload_size().

ParametersParameters

$file

(array) (Required) $_FILES array for a given file.

ReturnReturn

(true|WP_Error) True if can upload, error for errors.

SourceSource

File: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php


			

ChangelogChangelog

Changelog
Version Description
4.9.8 Introduced.
Scroll to Top