Python - Parsing multipart/form-data request on server side

前端 未结 3 1316
北恋
北恋 2021-01-12 09:00

Im trying to do a http \'POST\' with multipart/form-data to a python GAE backend. My server side method is receiving the complete body but i have absolutely no idea how to p

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 09:28

    If you want the uploaded files, you can do this

    for upload in self.get_uploads():

    If you want just a text field:

    x = self.request.get('value1')

提交回复
热议问题