nodejs-google-cloud-storage icon indicating copy to clipboard operation
nodejs-google-cloud-storage copied to clipboard

makePublic is not working !

Open ramdadam opened this issue 9 years ago • 1 comments

Hey,

first of all thanks for this great module. However i did encounter a "bug".

Well not really a bug but whatever. If i use the makePublic function you generate a url with the generation tag. The problem is - as the Google XML API doesnt mention that the response header returns the generation - you actually want to access it. (https://cloud.google.com/storage/docs/reference-methods#headobject)

I tried to find a way to get the generation without iterating through the whole bucket, but i dont see any possibility to retrieve the generation using XML API.

Actually the problem is with the metaData function not makePublic. Google requires the generation to update any file.

I hope you can help me. Btw i can't use the json api, i need to stick with the XML api.

ramdadam avatar Jun 02 '15 06:06 ramdadam

MMM... I guess your problem has been solved

Ihernandezpi avatar Sep 05 '16 18:09 Ihernandezpi