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

198
Views
Error: firebase.firestore().collection().doc(*) 'documentPath' debe apuntar a un documento en React Native

Cuando intento actualizar mi documento en Firebase, aparece un error como mi tema. Después de cargar mi imagen en el almacenamiento de Firebase, necesito actualizar el enlace de descarga a mi colección de Usuarios (utilicé Redux-Saga para este proceso)

 export function* uploadProfile(action) { console.log(action); const filePath = action.data.filePath; const fileName = action.data.fileName; const userID = action.data.userID; try { const uploadProfile = yield call(uploadFileFireBase, filePath, fileName) if (uploadProfile) { try { const updateProfile = yield call(updateUserFirebase, userID, uploadProfile) if (updateProfile) { } } catch (error) { console.log(error) } } } catch (error) { console.log(error) } } async function uploadFileFireBase(filePath, fileName) { const reference = storage().ref(fileName); await reference.putFile(filePath.toString()); // console.log("Download URL:" + url) return await storage().ref(fileName).getDownloadURL(); } /* Update User Data */ function updateUserFirebase(uploadProfile, userID) { return firestore() .collection('Users') .doc(userID) .update({ profileImage: uploadProfile, }) .then((data) => { console.log('User updated!'); return data; }); }

Pasé horas y horas tratando de escribir esto y no pude. Así que realmente necesito su ayuda con este proyecto universitario. Muchas gracias por su tiempo.❤️❤️

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!