Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!