--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It's still downloading files...
2016-12-05 10:38 GMT-02:00 António Ramos <ramst...@gmail.com>:
i think this helpsdef download():return response.download(request, db,attachment=False)
2016-12-05 12:11 GMT+00:00 Áureo Dias Neto <aureod...@gmail.com>:
Hello guy's,I want to show uploaded photos and pdf's documments, to users, onlineExample, 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 web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+un...@googlegroups.com.
On Monday, December 5, 2016 at 3:56:39 PM UTC-8, Áureo Dias Neto wrote:It's still downloading files...Are you saying that a download request never terminates? Can you use your browser's developer tools to see what's happening in terms of requests-responses (as shown on the network tab)?
You might also recognize Antonio's response in the example from Chapter 3 of the web2py book (in image blog):
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
def pdf_online():
response.headers["Content-Type"] = "application/pdf"
return (file=path_to_file)
pdf_online.html
{{=file}}
No, the function show pdf's online, but images, insiste to download it, i want to show it online