Google Cloud Functions bucket.upload()
问题 I'm trying to archive pdf files from remote websites to Google Cloud Storage using a google function triggered by a firebase write. The code below works. However, this function copies the remote file to the bucket root. I'd like to copy the pdf to the pth of the bucket: library-xxxx.appspot.com/Orgs/${params.ukey} . How to do this? exports.copyFiles = functions.database.ref('Orgs/{orgkey}/resources/{restypekey}/{ukey}/linkDesc/en').onWrite(event => { const snapshot = event.data; const params