[web2py] Re: Serving files from a Google Cloud Storage Bucket

2017-10-20 Thread Julian Sanchez
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

[web2py] Re: Serving files from a Google Cloud Storage Bucket

2017-10-17 Thread Bernhard Radermacher
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