take input in html file in value and use it in javascript file code example
Example: file input file types
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">