[英]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.