Read about response.download() here: http://web2py.com/books/default/chapter/29/04/the-core#response, and here as well: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-and-uploads. There is a download() function in the default.py controller of the scaffolding app that you can use -- just construct a URL like URL('default', 'download', args=row.myfile) (where row is a row from the database, and myfile is the name of the upload field).
Anthony On Monday, January 6, 2014 8:33:53 PM UTC-5, sonu kumar wrote: > > Hi, > > I have an application, which takes query in a form and after submitting > this form result comes in upload folder in text file which I want to > download. > Please let me know how to download this. > > Thanks > > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.