1
votes

I'm trying to save a file in google cloud storage using Blobstore API in my servlet.

That worked but the problem is that the file name in GCS is not the same as the original file name was (Seems that it's just blobkey).

Can I do the same but have the original file name in GCS?

2

2 Answers

0
votes

I just recently went through the same process and after some head scratching was able to figure things out. Check this link for my answer. google app engine java error using blobstore api to retrieve file from cloud storage

The short version is that your callback servlet needs to use the string returned from the method getGsObjectName().

Hope this helps!

0
votes

ok, I came to this:

No. In the GCS files are saved with generated key as its name. (But its possible to save original file name somewhere else)