Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

159
Vistas
Is it possible to attach a file created in javascript to a file input field for uploading

I've inherited a rather old application, all forms are done 'old school' without any fancy JavaScript. Multiple forms allow users to upload or replace profile pics of themselves. Now they want to upgrade the site to allow users to use webcams (if available) to take a picture of themselves and upload that instead.

I've got all of the logic in place to take the picture and convert the image to a FileData object.

Question:

Instead of converting all of the forms to send via ajax (which would not be thaaaaat painful I guess...) Is there anyway I can just attach that FormData back into the form so it can be processed 'old school' style again? (Good ole' enctype='multipart/form-data)

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda