The HTMLInputElement.files property allows you to access the FileList selected with the element.
HTMLInputElement.files
MDN Reference