stored_filename}")) { header("Content-Type: {$ref->filetype}"); header('Content-Disposition: inline; filename="' . $ref->filename . '"'); header('Content-Length: ' . filesize($file)); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Pragma: public"); readfile($file); } } exit;