0

When I upload a file to the Firebase storage I need to check the relevant file name already exist or not. In Firebase database we can do it using snapshot.exists(). But in Firebase storage I can't find anything regarding that.

I went through this question, but it does not provide better solution for that.

Community
  • 1
  • 1
isuru
  • 3,385
  • 4
  • 27
  • 62
  • 1
    Possible duplicate of [how to check if file exists in Firebase Storage?](http://stackoverflow.com/questions/37751202/how-to-check-if-file-exists-in-firebase-storage) – cartant Jan 17 '17 at 06:20
  • 1
    @cartant Read my question first. I have linked that question. – isuru Jan 17 '17 at 06:23
  • If you are not satisfied with a question's answers, you can place a [bounty](http://stackoverflow.com/help/bounty) on it: *"If you see a question that has not gotten a satisfactory answer, a bounty may help attract more attention and more answers."* However, I don't think it should be re-asked. – cartant Jan 17 '17 at 06:28
  • 1
    The answer to the linked question is the stated method: you can check for existence by making a query for the object and seeing if you get a non-404 back. – Mike McDonald Jan 17 '17 at 15:47

0 Answers0