Google App Engine (Python) - Uploading a file (image)

前端 未结 3 1511
难免孤独
难免孤独 2020-12-28 10:48

I want the user to be able to upload images to Google App Engine. I have the following (Python):

class ImageData(ndb.Model):
     name = ndb.StringProperty(i         


        
3条回答
  •  轮回少年
    2020-12-28 11:29

    You must add enctype="multipart/form-data" to your form in order for this to work

    name: image:

提交回复
热议问题