Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

GCP bucket object metadata and versioning

image (15).png

 Hello Engineers, In the above code I am trying to set custom metadata in the file from java code. File is uploading in the bucket successfully but metadata is missing in GCP bucket. I am using Spring cloud GCP version 4.7.1 in my springboot project. Please assist me.

1 2 1,208
2 REPLIES 2

Hello @pratyush_srivas!

Welcome to the Google Cloud Community!

You should look into setting an object's metadata and versioning in Cloud Storage. The documentation only contains code samples from the following languages:

  • C++
  • C#
  • Go
  • Java
  • Node.js
  • PHP
  • Python
  • Ruby

Looking further into Spring Cloud GCP with Cloud Storage, It only contains a Google Cloud Storage Starter Example.

If the above options don't work, you can contact Google Cloud Support to further look into your case. Let me know if it helped, thanks!

Hi @Marramirez I have tried all the possible ways through coding but it didn't work. I am not sure why is it not working.

Top Labels in this Space
Top Solution Authors