Use Django views for handling blobstore uploads

前端 未结 4 804
星月不相逢
星月不相逢 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 04:55

    It took me a long time to find, but the content_type: message/external-body requires extra parameters, to find the actual file, in AppEngine's case, this is the blob-key. However, Django doesn't support these extra content_type parameters, so they are indeed lost in the process. There seems to be a patch, but I don't think it's in the AppEngine Django version yet.

    https://code.djangoproject.com/ticket/13721

提交回复
热议问题