On Thu, Oct 29, 2009 at 10:32 AM, daysyn <[email protected]> wrote:
>
> Hello,
>
>    I'm working on my first pylons app, and part of it allows a user
> to download a file.  Following the example in ch.6 of the Pylons Book,
> that is working ok.  I can successfully select a file and have it
> download to my desktop.
>    I would like to be able to redirect the user to another page after
> the download has been initiated, or at least put up a "yay, it's
> finished" page, but that doesn't appear to be possible.  So I was
> wondering what it is that one normally does in a case like this?  What
> I've been able to find suggests that it is necessary to open a
> separate window...does that sound right?  Or is there a better way?

I don't think you can do this except maybe with Javascript.  Browsers
usually switch pages based on a link on the page or a redirect in the
HTTP headers (with a 3xx status).  Neither of these are feasable with
downloads.

-- 
Mike Orr <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to