final protected function validateFile () : bool
	{
		$file = $this->file;
		// Perform error checking on the file parameter parsed in
		if (!$file || empty($file) || !is_array($file)):
			// Error: nothing uploaded or wrong argument usage
			$this->error = "No file was uploaded.";
			return FALSE;
		endif;
		// Check if file is not empty
		if (!isset($file) || !is_uploaded_file($file['tmp_name'])):
			// Error: in file upload
			$this->error = "Uploaded file is Missing.";
			return FALSE;
		endif;
		// Check if file doesn't contain any error
		if ($file['error'] != 0):
			// Error: report what php says went wrong
			$this->error = $this->fileUploadErrors[$file['error']];
			return FALSE;
		endif;
		return TRUE;
	}
final protected function validateFile () : bool
	{
		$file = $this->file;
		// Perform error checking on the file parameter parsed in
		if (!$file || empty($file) || !is_array($file)):
			// Error: nothing uploaded or wrong argument usage
			$this->error = "No file was uploaded.";
			return FALSE;
		endif;
		// Check if file is not empty
		if (!isset($file) || !is_uploaded_file($file['tmp_name'])):
			// Error: in file upload
			$this->error = "Uploaded file is Missing.";
			return FALSE;
		endif;
		// Check if file doesn't contain any error
		if ($file['error'] != 0):
			// Error: report what php says went wrong
			$this->error = $this->fileUploadErrors[$file['error']];
			return FALSE;
		endif;
		return TRUE;
	}
final protected function validateFile ( ) : bool { $ file = $ this -> file ; // Perform error checking on the file parameter parsed in if ( ! $ file || empty ( $ file ) || ! is_array ( $ file ) ) : // Error: nothing uploaded or wrong argument usage $ this -> error = "No file was uploaded." ; return FALSE ; endif ; // Check if file is not empty if ( ! isset ( $ file ) || ! is_uploaded_file ( $ file [ 'tmp_name' ] ) ) : // Error: in file upload $ this -> error = "Uploaded file is Missing." ; return FALSE ; endif ; // Check if file doesn't contain any error if ( $ file [ 'error' ] != 0 ) : // Error: report what php says went wrong $ this -> error = $ this -> fileUploadErrors [ $ file [ 'error' ] ] ; return FALSE ; endif ; return TRUE ; }
Validates the file
@return bool
Validates the file