phasync
UploadedFile / getError

Method

UploadedFile::getError

Retrieve the error associated with the uploaded file.

Description#

public UploadedFile::getError(): int

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.

Return values#

One of PHP's UPLOAD_ERR_XXX constants. int

See also#