📜  获取下载 url firebase 函数 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:46.428000             🧑  作者: Mango

代码示例1
const createPersistentDownloadUrl = (bucket, pathToFile, downloadToken) => {
  return `https://firebasestorage.googleapis.com/v0/b/${bucket}/o/${encodeURIComponent(
    pathToFile
  )}?alt=media&token=${downloadToken}`;
};