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

85
Vistas
jquery. update filelist after splice

i have my piece of code of removing items in filelist. first im done with converting my filelist to another array. and there i made my splice function. my problem here is how to get update the existing filelist after the splice function i made. i want to assign back the array i made to the filelist.

// existing filelist

var fileList = [];

var file_list = $('#fileupload').get(0).files;
var fileListArr = Array.from(file_list)

fileListArr.splice(i, 1)

for (var x = 0; x < fileListArr.length; x++)
{
    fileList.push($('#fileupload')[0].files[x]);
}

console.log($('#fileupload')[0], 'newFiles')

i want to update my existing filelist here. right now nothing happens. thank you folks

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