Firebase存储自动删除文件

发布于 2025-02-07 00:32:15 字数 207 浏览 2 评论 0原文

我偶然发现了一个困扰我一段时间的问题。我正在开发一个带有firebase的应用程序(云功能,firestore和firestorage),并注意到,存储在燃箱存储桶中的文件在任意时间之后被删除。我一直在阅读有关存储桶生命周期的信息,甚至试图对其进行调整,但没有结果。几个小时后,这些文件仍然会自动删除。没有日志,什么也没有。目前,我感到非常困惑,因为我不知道自己在做什么错。还有其他有这个问题的人吗?

I stumbled uppon an issue that has been bothering me for some time now. I'm developing an app with firebase (cloud functions, firestore and firestorage) and have noticed, that the files stored in the firebase bucket get deleted after some arbitrary amount of time. I have been reading about the buckets lifecycle and even tried to adjust it, with no result. The files still get deleted automatically after a couple of hours. There are no logs, nothing. I am very confused at this point, because I have no clue what I'm doing wrong. Anyone else that has had this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时光礼记 2025-02-14 00:32:16

我正在遇到相同的问题,即每24小时后,我的壁炉存储空间自动清除。我没有可以实现这一目标的Cron工作。

I am encountering the same issue where my firebase storage gets cleared automatically after every 24 hrs. I have no cron jobs that can make that happen.

任性一次 2025-02-14 00:32:16

Firebase在一段时间后没有任何功能来自动删除文件,但是云存储(Firebase SDKS包装)有机会为其存储桶中的对象配置生命周期。您是否或该项目的合作者是有机会进行配置的?

Firebase doesn't have any functionality for automatically deleting files after a while, but Cloud Storage (which the Firebase SDKs wrap) has the opportunity to configure a lifecycle for the objects in its buckets. Did you, or a collaborator on the project, configure that by any chance?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文