The Javascript code in the textbox is a very easy and readable way to have multiple file input elements on your web page and ensure non of selected files is duplicate.