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

84
Views
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
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!