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

110
Vistas
Best way to change fileList in Javascript

Im making an web app for my ojt and they require me to add a delete function to a file field. Like if I choose to upload 3 of them there would be a preview to those file and I can remove some of them.

Can I just edit the fileField? Example document.getElementbyID("field").files returns a filefield Can I change that?

if not what is the best way to do it.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Create a FormData object from your form Element and use it to handle the fields

const form = document.getElementById("your_form");
const data = new FormData(form);
data.delete("file_field_name");
about 4 years ago · Juan Pablo Isaza Denunciar
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