I have a table which stores different images of different places, what i want is for the site users to be able to download all the images of a selected place by clicking the download button without having to download the images one at a time. How can i achieve this??
I tried this below: *MODEL:*db.define_table('location', Field('Image', 'upload'), Field('formTitle', requires=IS_NOT_EMPTY()), Field('place', 'reference area'),migrate=False,fake_migrate=True) *CONTROLLER*def areas(): form=db.place(request.args(0)) images=db(db.location.place==form.id).select(db.location.ALL) return dict(images=images, form=form) *VIEW*{{extend 'layout.html'}} <div> {{for pics in images:}} <a style="margin-left: 60px;" href="{{=URL('download',args=pics.Image)}}">Download</a> {{pass}} </div> Unfortunately the above attempts do not give me what i want, please assist. Thank you. -- 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.