js file input code example Example: file input file types Click to copy<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">