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

294
Vistas
Firebase Storage Upload JSON file as admin

I'm trying to upload a json file using TS and the firebase admin module

async function uploadFileV2(filename, path) {
    await bucket.upload(path, {
        destination: `json/${filename}`,
        metadata: {
            contentType: "application/json"
        },
    });
}
uploadFileV2('test.json', 'C:/path/to/json/file')

Once the file is uploaded it appears in the storage bucket as undefined but with the choosen name. I tried it with uploading a png and using the contentType: 'image/png' and it worked fine. (Uploading a json file manual does work, too) What am I doing wrong? Thank you for your help!

about 4 years ago · Juan Pablo Isaza
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