Try this in your view:

def pdf_online():
    response.headers["Content-Type"] = "application/pdf"
  responseresponse.headers['Content-Type'] = None

Em segunda-feira, 5 de dezembro de 2016 09:11:41 UTC-3, Áureo Dias Neto 
escreveu:
>
> Hello guy's, 
>
> I want to show uploaded photos and pdf's documments, to users, online
>
> Example, a page show thumbnails of photos uploaded, and when user click on 
> thumbnail, it open a full photo or pdf online
>

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