On Friday, August 12, 2011 5:24:24 AM UTC-4, peter wrote:
>
>     path=os.getcwd()+"/"+'albums'+"/"+request.vars.album 
> +"/"+request.vars.filename
>
os.getcwd() refers to the web2py folder, not your application folder. 
Assuming the 'albums' folder is in your application folder, you can instead 
use request.folder. Also, you should use os.path.join instead of 
concatenating the path together. Try:
 
path=os.path.join(request.folder,'albums',request.vars.album,request.vars.filename)
 
 
Anthony

Reply via email to