Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

257
Vistas
Firebase Storage - Web v9 - how to check if file exists in bucket?

Currently I'm using getDownloadURL() and error handling like this

const storage = getStorage();

async checkIfFileExists(filePath) {
        const docRef = ref(storage, filePath)
        try {
            await getDownloadURL(docRef)
            return true
        } catch (error) {
            return false
        }
    }

which works, but kind of feels like a workaround. So I'm wondering if this is the way to go or if there's a better alternative. Maybe I'm missing a build in way to directly request the existence? (with 'Web v9' options)

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

There isn't any direct way like exists() to check existence of a file. The V9 SDK just has a new API surface designed to facilitate tree-shaking but most of the functionality remains same.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda