2

I am trying to retrieve downloadable URL of images in my Firestore database. This is my code:

var storageRef = firebase.storage().ref();
storageRef
  .child(`tutorials/images/${filename}`)
  .getDownloadURL()
  .then(function(url) {
    this.setState({ imgURL: url });
    console.log(url);
  })
  .catch(function(error) {
    console.warn(error);
  });

but I get a error RNFIrebaseStoragepromiseRejectStorageException error. Anyone have a solution to how I can successfully retrieve the downloadable URL from the Firestore? Thanks.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Paul
  • 21
  • 1

1 Answers1

0

Things to try:

  1. Try to download a hardcoded URL, just to be sure the path exists
  2. Double check your storage permissions.
sebastianf182
  • 9,844
  • 3
  • 34
  • 66