在下面的例子中,有没有办法获得写给/ messages / {pushId} / original的用户的uid? exports.makeUppercase = functions.database.ref('/messages/{pushId}/original') .onWrite(event => { // Grab the current value of what was written to the Realtime Database. const original = event.data.val(); console.log('Uppercasing', event.params.pushId, original); const uppercase = original.toUpperCase(); // You must return a Promise when performing asynchronous tasks inside a Functions such as // writing to the […]
在Firebase存储中使用Firebasefunction上传文件后,我想获取文件的下载url。 我有这个 : … return bucket .upload(fromFilePath, {destination: toFilePath}) .then((err, file) => { // Get the download url of file }); 目标文件有很多参数。 即使一个名为mediaLink 。 但是,如果我尝试访问这个链接,我得到这个错误: Anonymous users does not have storage.objects.get access to object … 有人可以告诉我如何获得公共下载url? 谢谢