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