Il 12/04/15 02:55, 'sasogeek' via web2py-users ha scritto:
> I managed to get it working. I looked up the download method in the
> Response class and apparently it's looking for a table name and field
> in the file name. I added that structure [table.field.] to my zipped
> file name [table.field.zipfile_name.zip] and passed it to the download
> as an argument in URL() and now it works. it zips the file, saves it,
> then downloads it, Now the next thing I want to do is delete the saved
> zip file from inside my app once it has been downloaded.
A solution could be to use the scheduler to periodically clean your fs
from zip files older than a reasonable amount of time...
M.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.