/** * Send file to browser * Selects the method depending on the XSendfile setting * @param string $filePath */ public static function sendFile($filePath) { $config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config"); if ($config->getXSendfile()) { CKFinder_Connector_Utils_FileSystem::sendWithXSendfile($filePath); } else { CKFinder_Connector_Utils_FileSystem::readfileChunked($filePath); } }