public function getErrorDescription()
    {
        if ($this->error === UPLOAD_ERR_OK) {
            return null;
        }
        
        $descs = static::ERROR_DESCRIPTIONS;
        return isset($descs[$this->error]) ? $descs[$this->error] : $descs[-1];
    }
public function getErrorDescription()
    {
        if ($this->error === UPLOAD_ERR_OK) {
            return null;
        }
        
        $descs = static::ERROR_DESCRIPTIONS;
        return isset($descs[$this->error]) ? $descs[$this->error] : $descs[-1];
    }
public function getErrorDescription ( ) { if ( $ this -> error === UPLOAD_ERR_OK ) { return null ; } $ descs = static :: ERROR_DESCRIPTIONS ; return isset ( $ descs [ $ this -> error ] ) ? $ descs [ $ this -> error ] : $ descs [ - 1 ] ; }
Retrieve the description of the error associated with the uploaded file.

If the file was uploaded successfully, this method returns null.

This method is not part of PSR-7.

@return string|null
Retrieve the description of the error associated with the uploaded file .