# give this db
db.define_table('image',Field('filename','upload'))

# given a for to upload
def upload(): return dict(form = SQLFORM(db.image))

# and a page to list of the images
def select(): return 
TABLE(*[TR(TD(A(row.filename,_href=URL('download,args=row.filename)))) for 
row in db(db.image).select()])

# this is the link to download them, already in the scaffolding app
def download():
      return response.download(request, db)

I feel I am missing something from your question.

On Thursday, 25 June 2015 03:17:13 UTC-5, Chaitu P wrote:
>
> Hello all,
>
> In my application when I want to create a hyperlink which should display 
> the corresponding uploaded image when it is clicked.
> Right now Iam able to only download the image.
> Can anyone please help???????
>

-- 
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.

Reply via email to