ファイル選択フォームを設置する
<form name="form01" action="">
<input name="file" type="file" accept=".txt" />
<!-- accept属性でファイル形式を指定 -->
</form><form name="form01" action="">
<input name="file" type="file" accept=".txt" />
<!-- accept属性でファイル形式を指定 -->
</form>