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

207
Views
¿Cómo convertir un archivo de imagen de entrada a una cadena en un formulario?

No sé cómo codificar esta entrada para que cuando se crea un objeto a través de un formulario, la propiedad de la imagen devuelva una cadena para que luego se pueda mostrar en una tarjeta.

 <input classname = {style.imageInput} type = "file" name = "image alt = "newDoggie" accept = "image/*" multiple />

El objeto tiene estas propiedades:

 id: '', name: ''. breed_group: ''. heightMin: '', heightMax: '', weightMin: '', weightMax: '', life_span: '', image: '', temperaments: []

Un ejemplo de cómo estoy guardando los otros datos:

 <input classname = {style.nameInput} placeholder = "NAME" type = "text" value = {input.name} name = "name" onChange = {(e) => handleChange(e)} required /> <input className = {style.heightInput} required placeholder = "MINIMUM HEIGHT -cm- " type = "text" value = {input.heightMin} name = "heightMin" onChange = {(e) => handleChange(e)} /> function handleChange(e) { setInput({ ...input, [e.target.name] : e.target.value });
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!