Codeigniterではforce_download($file_name,$data)
、ダウンロードヘルパーの関数を使用して、ブラウザーにファイルのダウンロードを強制できます。
But this is not what I need, I would like Codeigniter to respond a http header with the MIME type that the file corresponds to, so that the browser may or may not download the file, depending on whether there is an application registered for that MIME type on the client machine (if there is one, that application will open that file).
Is there a way of doing this with Codeigniter?
Many thanks to you all.