I guess it would something like:

class serveZip:
    def GET(self,):
    web.header('Content-Type', 'application/zip')
    a = open('test.zip','r')    for line in a.readlines():
       print line
    a.close()

Change the content-type to whatever you need.

2009/1/29 Cowmix <[email protected]>

>
> Are there any examples on how to code a file download? Basically I
> want to have someone click on a link and have it prompt them to save
> whatever file to their harddrive.
>
> thanks!
> >
>

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

Reply via email to