从GAE中的BlobStore提供文件

时间:2012-03-24 19:18:56

标签: python google-app-engine blobstore

我想问一下我是否可以在google app引擎(特别是zip文件)中从blobstore下载文件而不使用处理程序(类处理程序)。我的意思是直接提供文件而不使用downloadhandler类。

有什么想法??

1 个答案:

答案 0 :(得分:3)

没有。 (如果我正确理解了这个问题)blobstore项目没有直接的URL,所以你无法直接获取它们。 However you can serve blobs from URLs that you define with less than 10 lines of code

编辑:The send_blob also takes a save_as argument.尝试save_as=True使用blob上传的文件名作为附件文件名。