[web2py] Re: Displaying images from web2py as a server

2023-10-10 Thread CarlosDB
In your example, `image_url` is not the URL of the image, it's the value of the "upload" field. Try something similar to this: image = AsyncImage(source=f"http://localhost:8000/download/{image_url}";) Carlos. El lunes, 9 de octubre de 2023 a las 6:56:05 UTC+2, mostwanted escribió: > I have a l

[web2py] Re: Displaying images with their title in a for statement in an image slideshow

2020-05-19 Thread 'Annet' via web2py-users
Have a look at the html of the Bootstrap 4.5 carousel https://getbootstrap.com/docs/4.5/components/carousel/ maybe that points you in the right direction. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: Displaying images

2017-05-08 Thread Dave S
On Sunday, May 7, 2017 at 11:16:32 AM UTC-7, Matt Bockman wrote: > > How big is your application/user base? > At the moment, 1. > Is sqlite not sufficient? > sqlite works quite well for me. But there are applications where it won't scale, mainly because of the locking mechanism. I would ra

[web2py] Re: Displaying images

2017-05-07 Thread Matt Bockman
How big is your application/user base? Is sqlite not sufficient? I unwittingly thought sqlite was kind of a toy until I did a little more research to find out that it is actually very capable and used in a lot of applications. Based on this: https://www.sqlite.org/whentouse.html Seems like pre

[web2py] Re: Displaying images

2017-04-27 Thread Dave S
On Wednesday, April 12, 2017 at 4:31:42 AM UTC-7, Massimo Di Pierro wrote: > > I would do: > > def custom_download(): > filename = request.args(0) > # maybe validate filename > full_path = os.path.join('/whereever/it/is', filename) > return response.stream(full_path) > > and cal

[web2py] Re: Displaying images

2017-04-13 Thread Dave S
On Thursday, April 13, 2017 at 1:35:14 AM UTC-7, Dave S wrote: > > > > On Wednesday, April 12, 2017 at 4:31:42 AM UTC-7, Massimo Di Pierro wrote: >> >> I would do: >> >> def custom_download(): >> filename = request.args(0) >> # maybe validate filename >> full_path = os.path.join('/wh

[web2py] Re: Displaying images

2017-04-13 Thread Dave S
On Wednesday, April 12, 2017 at 4:31:42 AM UTC-7, Massimo Di Pierro wrote: > > I would do: > > def custom_download(): > filename = request.args(0) > # maybe validate filename > full_path = os.path.join('/whereever/it/is', filename) > return response.stream(full_path) > > and c

[web2py] Re: Displaying images

2017-04-12 Thread Massimo Di Pierro
I would do: def custom_download(): filename = request.args(0) # maybe validate filename full_path = os.path.join('/whereever/it/is', filename) return response.stream(full_path) and call with http:///custom_download/yourfilename On Wednesday, 5 April 2017 02:44:47 UTC-5, D