public static function _uploadError ($error)
	{
		
		// Return an error dependent on the error number
		
		switch ($error)
		{
			
			case UPLOAD_ERR_INI_SIZE:
				
				return 'The filesize cannot be more than ' . ini_get ('post_max_size');
				break;
				
			case UPLOAD_ERR_FORM_SIZE:
				
				return 'The filesize cannot be more than ' . $_POST['MAX_FILE_SIZE'];
				break;
				
			case UPLOAD_ERR_PARTIAL:
				
				return 'The file was only partially uploaded. Please try again.';
				break;
				
			case UPLOAD_ERR_NO_FILE:
				
				return 'No file was selected to upload!';
				break;
				
			case UPLOAD_ERR_NO_TMP_DIR:
				
				return 'There is no temporary folder to upload the file to. Please inform the site administrator.';
				break;
				
			case UPLOAD_ERR_CANT_WRITE:
				
				return 'Failed to write the file to disk.';
				break;
				
			default:
				
				return 'Unknown error.';
				break;
				
		}
		
	}