The files API to write files to the blobstore has been deprecated. You have to use GCS instead, because Google is moving away from the blobstore. See this GIST
But your application can also upload your blob to the blobstore of your application. See this GIST.