Migrating from App Engine Files API

前端 未结 4 1232
终归单人心
终归单人心 2020-12-21 11:27

My app stores a bunch of images as blobs. This is roughly how I store images.

from google.appengine.api import files
# ...
fname = files.blobstore.create(mim         


        
4条回答
  •  清歌不尽
    2020-12-21 11:51

    Me too faced same issue while running GAE server locally:

    com.google.appengine.tools.cloudstorage.NonRetriableException: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Files API is disabled. Further information: https://cloud.google.com/appengine/docs/deprecations/files_api

    Here in my case this is fixed my issue:

    Simply I changed

    This:

    compile 'com.google.appengine.tools:appengine-gcs-client:0.4.1'

    To:

    compile 'com.google.appengine.tools:appengine-gcs-client:0.5'

    in build.gradle file, because Files API(Beta) is deprecaated on June 12, 2013 and Turndowned on September 9, 2015. (Source)

    From this MVN Repo latest one is 'com.google.appengine.tools:appengine-gcs-client:0.5'

提交回复
热议问题