For the moment i will leave this upload with DAL, in the future i will make 
upload class. I still have a problem with this:
def nt_download():
    return response.stream(open(os.path.join(request.folder, 'uploads',
 request.args(0))), attachment=True)
This code doesn't work properly for files like pdf, xls, docx, png. How i 
can fix this? On my file system file is ok, but when i try to download it 
trough browser i always end up with 0 bytes file.

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to