Assuming you have used a DAL upload field to upload and store the file, you
can use response.download() to retrieve and return the file.
See http://web2py.com/books/default/chapter/29/04/the-core#response.
The welcome app includes a /default/download action that uses
response.download() for this purpose, so you src URL could be:
<img src="{{=URL('default', 'download', args=demand['photopath'])}}" alt="">
Anthony
On Thursday, January 10, 2019 at 12:53:49 PM UTC-5, Lucas Manoel wrote:
>
> i have a image uploaded, how do i recover it on html?
> Any idea?
>
> <img src="{{=URL('some', 'contrller', args=demand['photopath'])}}" alt="">
>
>
>
--
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.