Hi guys, This code used to work, before upgrading to Java SDK 1.9.28:
gcs.createOrReplace( new GcsFilename("myapp.appspot.com", "/gs/myapp.appspot.com/foo/bar.jpg"), new Builder().mimeType("image/jpeg").build()) This is the exception: Oct 31, 2015 6:28:32 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /foo/bar 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 at com.google.appengine.tools.cloudstorage.RetryHelper.doRetry(RetryHelper.java:120) at com.google.appengine.tools.cloudstorage.RetryHelper.runWithRetries(RetryHelper.java:166) at com.google.appengine.tools.cloudstorage.RetryHelper.runWithRetries(RetryHelper.java:156) at com.google.appengine.tools.cloudstorage.GcsServiceImpl.createOrReplace(GcsServiceImpl.java:70) at com.hohero.servlet.AnnouncementImageUploadServlet.doPost(AnnouncementImageUploadServlet.scala:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) ... Caused by: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Files API is disabled. Further information: https://cloud.google.com/appengine/docs/deprecations/files_api at com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:515) at com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:484) at com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:461) at java.util.concurrent.Executors$PrivilegedCallable$1.run(Executors.java:493) What needs to be changed? FYI I'm following https://cloud.google.com/appengine/docs/java/googlecloudstorageclient/getstarted - Writing a Byte Array to a Cloud Storage File. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/45ec020b-374d-4403-9b34-ad5d05688c7e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.