* @package entries * @version 1 * @link https://www.zentao.net */ class zfileContentEntry extends entry { /** * GET method. * * @param string $fileID * @access public * @return string */ public function get($fileID) { ob_end_clean(); helper::header('Content-type', 'application/octet-stream'); helper::header('Content-Transfer-Encoding', 'binary'); helper::header('Accept-Ranges', 'bytes'); // helper::header('Content-Length', filesize($filePath)); helper::header('Content-Disposition', 'attachment; filename="hello.txt"'); echo 'hello'; } }