Serving files from BlobStore in GAE

2019-07-08 08:05发布

I want to ask if I can download files from the blobstore in google app engine (zip files especially) without using the handlers(class handlers). I mean serve files directly without downloadhandler class usage.

Have any idea??

1条回答
SAY GOODBYE
2楼-- · 2019-07-08 08:41

No. (if I understand the question properly) There is no direct URL for blobstore items, so you can't get at them directly. However you can serve blobs from URLs that you define with less than 10 lines of code.

EDIT: The send_blob also takes a save_as argument. Try save_as=True to use the blob's uploaded filename as the attachment filename.

查看更多
登录 后发表回答