My question is similar to getting blobstore to callback to endpoint method but s/he got no reply. Also I actually wrote my code. I created my callback url as
BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
String url = blobstoreService.createUploadUrl("/loadImages");
And then I created my endpoint as
@ApiMethod(name = "loadImages", httpMethod = HttpMethod.POST)
public void loadImages(javax.servlet.http.HttpServletRequest req) {
//…. get blob key etc.
}
Then I get an error on my server when the blobstore makes the callback call:
No handlers matched this URL. (404)
Does anyone know what to pass to blobstoreService.createUploadUrl
so it is handled by my endpoint method?
I have also tried changing ”/loadImages”
to "/_ah/spi/com.company.package.ApiName.loadImages”
so that it looks like the other paths, but that didn’t work either. Then I tried "_ah/api/apiname/1/loadImages”
: nothing.
Note: I am not looking for an alternative to the blobstore/endpoint. When I use simple servlet to receive the callback it works. But the servlet just cheapens my otherwise endpoint-only code.