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

197
Vistas
Nothing uploads to firebase storage when trying to upload images

I am trying to upload this image to Firebase Storage. Somehow I get no errors whatsoever but nothing is getting uploaded to the database. The task returns nothing about task progress or completion. I am using Firebase auth for authentication and that works fine which I believe means that I have set up firebase correctly. I am using the IOS simulator.

import firestore from '@react-native-firebase/firestore';
import storage from '@react-native-firebase/storage';

let objectupload = {...eventobject}
      const uri = objectupload.eventdetails.details.Description.media[0].uri;
      const uploadUri = Platform.OS === 'ios' ? uri.replace('file://', '') : uri;
      const uploadpath = `post/ ${firebase.auth().currentUser.uid}/${eventobject.eventdetails.eventname}/${Math.random().toString(36)}`;
      const task = firebase
                     .storage()
                     .ref(uploadpath)
                     .putFile(uploadUri);

      const taskprogress = snapshot => {
        console.log(`transfered: ${snapshot.bytesTransferred}`)
      }

      const taskCompleted = snapshot => {
        snapshot.ref.getDownloadURL().then((snapshot) => {
          console.log(snapshot)
        })

      const taskError = snapshot => {
        console.log(snapshot)
      }

      task.on("state_changed", taskprogress, taskCompleted, taskError);
      }

I looked at this tutorial to write this code. I am not sure what I might be missing here.

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