Hello i have write this:
@expose()
def scarica(self, ID):
from cherrypy.lib.static import serve_file
b= Invio.get(ID)
nome = b.fileinv
return serve_file('/home/luca/Desktop/Turbogears/file/file/
static/fl/'+nome,"application/x-download", "attachment", nome)
But the browser open the file in a new browser page and the download
don't start.
can you help me and tell me what is wrong.
Regards
Luca
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to
cherrypy-users@...
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/cherrypy-users?hl=en-~----------~----~----~----~------~----~------~--~---