Also, do not handle uploads by manually creating the file and filename, as that will result in problems when retrieving (the DAL assumes the original filename is encoded in the new filename, but you have not done that). Instead, see http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#More-on-uploads.
Anthony On Sunday, July 17, 2016 at 6:49:34 AM UTC-4, Nico de Groot wrote: > > In your function you overwrite the web2py request object. So when you use > request.folder later it's no longer available. > You can save the attribute to a local var request _location before the > overwrite, and use it later. > > Nico de Groot > -- 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/d/optout.