You can't. In order to have the browser present the user with a "save" dialog, certain headers need to be sent. By the time that's happened, it's too late to send a redirect header.
On Thu, Aug 27, 2009 at 5:35 PM, Martin Radosta<[email protected]> wrote: > > Let's say I have a view that renders an excel file to download. It > presents a download dialog to the user. This user can decide to save the > file to the local drive, to open the file or to cancel the operation. > Now I need to redirect somewhere else after any operation with the > download dialog. > > Does anybody knows how to do this? > > Thnks > > MARTIN > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
