problem during download file through function force_download |
|||
|---|---|---|---|
| Date: | 06/26/2009 | Severity: | Trivial |
| Status: | Unconfirmed | Reporter: | fat_marvin |
| Version: | 1.7.1 | ||
| Keywords: | Helpers, Download Helper | ||
Description
When file was sent to browser through function force_download, Opera browser (version 9.60) opens it as text instead of showing download dialog.
This problem can be decided if remove double quotes in mime type header.
Code Sample
header('Content-Type: "'.$mime.'"');
replace with
header('Content-Type: '.$mime);
Expected Result
Actual Result
Comment on Bug Report
| Posted by: Derek Allard on 17 August 2009 12:22pm | |
|
|
I can’t recreate (using Opera 10). Could you start a forum thread on this and see if anyone else can recreate? |
| Posted by: tomcode on 18 November 2009 5:31pm | |
|
|
I stumbled over this issue while testing force_downloading a PDF under Ubuntu Linux, using Firefox. The header sent is “mime_type”, but should be just mime_type, without the double quotes. The Ubuntu document viewer would not recognize the quoted mime type. |
| Posted by: martinsp on 26 February 2010 8:16am | |
|
|
I can confirm this using CodeIgniter 1.7.2 (Mac OS X / Firefox) |
