Hi
<https://groups.google.com/groups/profile?hl=en-GB&enc_user=Gjh4SBYAAADENibkLoBO6bCUR4sAw0HQo4cocwWvDVg2RHsu8f1bCg>
Pbreit,

It does, but if you are trying to open an image in browser using download()
function with A tag (<a href =
"{{=URL(r=request,f="download",args=listing.image)}}" ..), it will download
the image and not open it.

you'll end up with this link
/app/default/download/image.file.8b285b23166b85a2.50363032303038392e4a5047.JPG

instead of
/app/static/image.file/8b/image.file.8b285b23166b85a2.50363032303038392e4a5047.JPG

So far this is working  for me.

Cheers
I

On 10 July 2011 18:53, pbreit <pbreitenb...@gmail.com> wrote:

> Does the download() function handle the file paths properly?
>
> def download():
>     """
>     allows downloading of uploaded files
>     http://..../[app]/default/download/[filename]
>     """
>     return response.download(request,db)
>
>

Reply via email to