Use Django views for handling blobstore uploads

前端 未结 4 798
星月不相逢
星月不相逢 2021-02-11 04:16

In stead of using the BlobstoreUploadHandler supplied in AppEngine, I\'d prefer to use a Django view, so I can keep all the urls and view functions together. Howeve

4条回答
  •  花落未央
    2021-02-11 05:00

    As you noted, BlobstoreUploadHandler is open source, so you can see the logic they use to parse the key out of the request params. Note that request.params just includes variables from both the query string and the request body (for POST requests). So you might want to start with your djnago request's REQUEST object.

提交回复
热议问题