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

109
Views
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 answers
Answer question

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 Report
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!