WordPress\AiClientDependencies\Psr\Http\Message
UploadedFileInterface::getError
Retrieve the error associated with the uploaded file.
The return value MUST be one of PHP's UPLOAD_ERR_XXX constants.
If the file was uploaded successfully, this method MUST return UPLOAD_ERR_OK.
Implementations SHOULD return the value stored in the "error" key of the file in the $_FILES array.
Method of the class: UploadedFileInterface{}
No Hooks.
Returns
Int. One of PHP's UPLOAD_ERR_XXX constants.
Usage
$UploadedFileInterface = new UploadedFileInterface(); $UploadedFileInterface->getError(): int;
Notes
UploadedFileInterface::getError() UploadedFileInterface::getError code WP 7.0
public function getError(): int;