In case this helps anyone else, here is how I got it to work:
response.headers['Content-Type'] = 'application/octet-stream'
response.headers['Content-Disposition'] = 'attachment;filename=%s' %
file_name
file_reader = cloudstore.open(file_path)
return file_reader.read()
any other attempts to use
not having worked with GAE, so I might be completely off base, but try to
build an absolute path like
os.path.join(request.folder, file_path)
just an idea.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://c
2 matches
Mail list logo