2

我尝试使用 jquery 插件“uploadify”将多个文件上传到 Google App-Engine 中的 My App,然后使用 blobstore 保存,但失败了。我将代码追踪到get_uploads,它似乎 field.type_options是空的,当然没有'blob-key'。密钥“blob-key”来自哪里?

像这样的代码:

def upload(request):
   for blob in blogstorehelper.get_uploads(request, 'Filedata'):
       file = File()
       file.blobref = blob
       file.save()
   return ……

但是, blogstorehelper.get_uploads(request, 'Filedata') 始终为空。事实上,请求已经包含了上传的文件(我打印了请求)。我调试到 blogstorehelper.get_uploads,发现 field.type_options 是空的。谁能告诉我为什么?谢谢你!here is the source about get_uploads: http://appengine-cookbook.appspot.com/recipe/blobstore-get_uploads-helper-function-for-django-request/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tyjwELEgtSZWNpcGVJbmRleCI4YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZBc1NDRU5oZEdWbmIzSjVJZ1pFYW1GdVoyOE0MCxIGUmVjaXBlIjphaEpoY0hCbGJtZHBibVV0WTI5dmEySnZiMnR5RkFzU0NFTmhkR1ZuYjNKNUlnWkVhbUZ1WjI4TTIxDA

4

0 回答 0