简体   繁体   English

我想检查是否有新文件添加到 firebase 存储中

[英]I want to check whether a new file is added to firebase storage or not

I want to check whether a new file is added to Firebase Storage or not, as I will be using the test case to show the updated image in the android app developed in Java and showing no new file added if that no the case.我想检查是否将新文件添加到 Firebase 存储中,因为我将使用测试用例在 android 应用程序中显示更新的图像,该应用程序是在 ZD52387880E1EA22817A72D375921381 中开发的,如果没有显示新文件,则显示没有添加的文件。

I want to check whether a new file is added to Firebase Storage or not.我想检查是否将新文件添加到 Firebase 存储中。

If you want that, then you have to know when you have the file was added to the storage for the first time.如果你想要这样,那么你必须知道你什么时候第一次将文件添加到存储中。 For that, I recommend you store the details of the files either in Cloud Firestore or in the Realtime Database .为此,我建议您将文件的详细信息存储在Cloud Firestore实时数据库中。

Now, when you want to upload a file, first you have to check if the file already exists, before performing the upload operation.现在,当您要上传文件时,首先您必须检查文件是否已经存在,然后再执行上传操作。 If the file doesn't exist, then you have to upload it, otherwise, do whatever you want.如果文件不存在,那么您必须上传它,否则,做任何您想做的事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python Firebase 如何查看firebase存储上是否存在文件 - Python Firebase How to check whether a file exists on firebase storage 在 Azure 逻辑应用程序中。 我想检查表中是否存在 blob 中 csv 文件中的 emailid - In Azure logic app . I want to check whether emailid which is there in csv file inside blob is present in the table or not 为什么我无法将文件上传到 Firebase 存储 - Wyh I can not upload file to Firebase Storage 如何从您的 Android 应用程序检查 Firebase 存储中是否存在文件? - How to check if a file exists in Firebase storage from your android application? 如何获取带有上传文件令牌的 url 到 firebase 存储? - How do I get url with token of uploaded file to firebase storage? 我想在android中上传react native项目中的图片如何选择上传到firebase中存储到android中 - I want to upload pictures in react native project in android how to choose and upload them in firebase storage in android 在 firebase 存储上复制文件? - Copy a file on firebase storage? firebase 存储文件名更改 - firebase storage file name change 上传文件到 firebase 存储不工作 - upload file to firebase storage not working 如何在 React js 中从 firebase 存储下载文件? - How can I download a file from firebase storage in react js?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM