#6064: mediaView issue in Internet explorer (at least 6 and 7 on Vista and XP)
--------------------------+-------------------------------------------------
Reporter: josbeir | Type: Bug
Status: new | Priority: High
Milestone: 1.2.x.x | Component: View
Version: 1.2 Final | Severity: Major
Keywords: | Php_version: n/a
Cake_version: |
--------------------------+-------------------------------------------------
When you download a file with mediaView by clicking on link from a page
everything works fine.
But when you copy the url and paste into the address bar there are some
issues.
* Internet explorer won't download the file and filename is completely
wrong. The download dialog pops up but gives an error saying "Internet
explorer cannot download ... etc etc..."
After some googling i found a solution on the php.net site (in some
comment: http://be2.php.net/manual/en/function.header.php#83384) and
updated/added the following in media.php (the section where all headers
are).
header("Content-Type: application/download");
header("Content-Type: application/force-download");
header('Expires: 0');
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Pragma: public");
Which obviously fixed the problem.
This really should be merged into the trunk because its kind of a big
issue.
Hope this helps fellow my cake developers!
--
Ticket URL: <https://trac.cakephp.org/ticket/6064>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---