【发布时间】:2017-06-15 05:33:35
【问题描述】:
是否可以在 Cloud Functions for Firebase 中获取自定义存储元数据? 例如在android代码中:
StorageMetadata metadata = new StorageMetadata.Builder().setContentType("image/jpg")
.setCustomMetadata("latitude",String.valueOf(image.latitude))
.setCustomMetadata("longitude",String.valueOf(image.longitude))
.setCustomMetadata("deviceID",image.deviceID)
.setCustomMetadata("userID",image.userID)
.setCustomMetadata("deviceFilePath",image.filename)
.setCustomMetadata("timestamp",String.valueOf(image.timestamp))
.setCustomMetadata("caption",image.caption)
.setCustomMetadata("location",image.location)
.setCustomMetadata("imageID",key)
.build();
我想在云函数中检索自定义元数据值
【问题讨论】:
标签: node.js firebase google-cloud-functions