Serving Images Dynamically

2011-11-21 Thread Vincent Catalano
I'm trying to figure out the best way to serve images dynamically in Pylons. Right now, I'm uploading images to a folder in /public. However, I want to be able to provide permissions to images as well as store them in a different manner (e.g. in a database). What would be the best way to handle

Re: Serving Images Dynamically

2011-11-21 Thread John Anderson
On Mon, Nov 21, 2011 at 2:48 PM, Vincent Catalano vinc...@vincentcatalano.com wrote: I'm trying to figure out the best way to serve images dynamically in Pylons. Right now, I'm uploading images to a folder in /public. However, I want to be able to provide permissions to images as well as

Re: Serving Images Dynamically

2011-11-21 Thread Michael Merickel
John, he's using Pylons. -- Michael -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to

Re: Serving Images Dynamically

2011-11-21 Thread Gael Pasgrimaud
This also work with Pylons. Except for the decorator. You can replace it with a custom one or by repoze.what But the best way is to use a X-Sendfile (or similar) header: http://www.yiiframework.com/wiki/129/x-sendfile-serve-large-static-files-efficiently-from-web-applications/ (It's about PHP

Re: Serving Images Dynamically

2011-11-21 Thread Vincent Catalano
Thanks! On Mon, Nov 21, 2011 at 2:28 PM, Gael Pasgrimaud g...@gawel.org wrote: This also work with Pylons. Except for the decorator. You can replace it with a custom one or by repoze.what But the best way is to use a X-Sendfile (or similar) header: