yes - last week after upgrading to 2.0 I had the same problem. I wanted to render files as pdf automatically (/controller/action/ [ID].pdf) and it always returned the ID no matter what I did. after some research I found out that this is a well known bug in almost all browsers they simply ignore the "inline filename" header thats probably why cakephp doesnt even bother setting it^^
see my post from last week about this topic: http://www.dereuromark.de/2011/11/21/serving-views-as-files-in-cake2/ Its not the media view but I think it should work in your case, as well, if you make sure that all files are served as "/controller/action/ID/this-is-the-actual- filename.pdf" yours mark On 26 Nov., 22:37, shantamg <[email protected]> wrote: > Hi, > > I have noticed that with media view, the file name specified is only > used when download is set to true. I'd like to have the file play in > the browser by default but if they decide to download the link it > should have the name I specified. Anyone know of a fix? > > Thanks, > Jason -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
