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

110
Views
¿Cómo se puede agregar una imagen a la base de datos en tiempo real?

Tengo problemas para intentar agregar una imagen a mi base de datos en tiempo real y, por lo tanto, hacer que se muestre en el sitio. En el código que se muestra a continuación, aparece en el almacenamiento de firebase pero no aparece en la base de datos. ¿Cómo puedo hacer que haga ambas cosas?

 var newData = { UUID: refUUID, Status: 'Active', Recommended: false, Price: priceValue.replaceAll(',', ''), Location: { Address: addressValue, City: cityValue, State: stateValue, Zip_Code: zipCodeValue, Country: 'US' }, Description: { Date_Listed: date + ' ' + time, Bathrooms: bathroomsValue, Bedrooms: bedroomsValue, Description: descriptionValue } } ref.set(newData); for (let i = 0; i < filess.length; i++) { storage.ref(refUUID + '/' + filess[i].name).put(filess[i]).then(() => { storage.ref(refUUID + '/' + filess[i].name).getDownloadURL().then(function (url) { database.ref(listingType + '/' + refUUID + '/Description/Images/Image' + (i + 1)).set({ Link: url, name: 'Image' + (i + 1) }) }); }); } clearFields(); addAuditLog('Added Listing', refUUID, ''); document.getElementById('add-successful-modal').style.display = 'block';
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!