'image/jpeg', 'png' => 'image/png', 'gif' => 'image/gif', 'webp' => 'image/webp', 'avif' => 'image/avif', 'mp4' => 'video/mp4', 'webm' => 'video/webm', 'mov' => 'video/quicktime', default => 'application/octet-stream', }; header('Content-Type: ' . $mime); header('Cache-Control: public, max-age=86400'); header('Content-Length: ' . filesize($path)); readfile($path);