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

268
Views
Intentando usar el archivo de <tipo de entrada = archivo>

Estoy tratando de hacer que una tarjeta de empleado que obtenga un archivo de un <input type="file"/> empuje este archivo a una matriz y lo muestre como una "imagen de perfil".

html:

 <label for="formFileLg" class="form-label"></label> <input class="form-control form-control-lg" id="Img" type="file">

Js- inserte el archivo en la matriz:

 function addEmployee() { employees.push({ name: Name.value, age: Age.value, **img: Img.value** }) }

Js- muestra el archivo:

 <img src="${employees[i].img}" class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false" />

¿Qué necesito para agregar\cambiar?

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!