google app engine; upload to blobstore gives 404 error

前端 未结 3 1162
终归单人心
终归单人心 2021-01-15 22:39

I am using GAE with Python 2.7 to make a website which can upload files with ascii data to the blobstore. The code I am using for this is pretty much the same as given in th

3条回答
  •  暖寄归人
    2021-01-15 23:15

    The URL that you are getting with create_upload_url() has a certain timeout (which is 10 minutes) so if you are retrieving this URL when the webpage is loaded and it takes a while to upload the actual data it will eventually expire and return 404. I would suggest you to get the upload URL just before uploading the data.

提交回复
热议问题