On Wednesday, April 20, 2016 at 8:35:45 AM UTC-7, bria...@gmail.com wrote: > > I apologize. My initial question is not very clear so I'll rephrase it > more appropriately. > > The problem here is that when I link to the image it's saving it instead > of display it, and the latter is my intention. > > It looks like this feature is built into web2py. I think the following > HTTP header causes the image to be saved rather than display. How do I > change this default behavior? > > > *Content-Disposition: attachment; filename="wirelessicon.jpg"* > > I appreciate any advise given. > > > On Tuesday, April 19, 2016 at 5:09:32 PM UTC-4, bria...@gmail.com wrote: > >> I use the built-in wiki for my application. I created a page (slug) and >> upload the image using the built-in media function. I created a link to >> display the large image when user clicked on the thumbnail, but instead it >> downloads the image. >> >> This is my code within the page. >> >> <a href="@////21/*wirelessicon-large.jpg*"><img alt="" src="@////21/ >> *wirelessicon-thumbnail.jpg*" /></a> >> >> Please advise how can I display the larger image when user click on the >> link instead of saving the image. >> > Instead of an anchor tag, you need an image tag.
Look at <URL:http://web2py.com/books/default/chapter/29/03/overview#An-image-blog>, and scroll down to where the "show()" controller is defined, and then further down to where "show.html" is defined. /dps -- 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.