Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

292
Visualizações
Why is firebase.storage ref missing child() function (or other properties)?

I imagine this should be a simple goal. I have some files stored in firebase, and I want to use validation like 'getDownloadUrl()' or 'child()' to navigate or confirm if file exists. That's kind of besides the point, though, as it seems my reference to my storage object is just missing some of the functions I expect to see, based on documentation and other google searches:

Here's the actual doc for the class: https://firebase.google.com/docs/reference/node/firebase.storage.Reference

So, assuming I have implemented this correctly, then I should be able to call the 'child()' function, right?

intellisense disagrees with docs

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The new Firebase Modular SDK has a functional syntax rather than chaining method. That being said, you can just pass arguments in ref() to get a reference to child path as shown below:

const imageRef = ref(storage, "images", "1.png")

You can learn more about this syntax in the documentation (switch to 'modular' tab).


Similarly getDownloadURL is also a function now and must be imported from Firebase Storage SDK:

import { ref, getDownloadURL } from "firebase/storage"

const imageRef = ref(storage, "images", "1.png")

const url = await getDownloadURL(imageRef)
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda