HTML input file

1 개요[ | ]

HTML input type=file, file select
  • HTML 파일 선택 컴포넌트
html
Copy
<form action="form-handler.php" method="post" enctype="multipart/form-data">
  <div>
    <input type="file" id="myfile" name="myfile">
    <input type="submit" value="Upload ►">
  </div>
</form>

2 accept 속성[ | ]

html
Copy
<input type="file" id="myfile1" name="myfile1" accept="image/gif,image/png">
<input type="file" id="myfile2" name="myfile2" accept="image/*">

3 같이 보기[ | ]

4 참고[ | ]

  • HTML 커스텀 태그
    Error: Element asdf not allowed as child of element body in this context. (Suppressing further errors from this subtree.) HTML5 검사 도구에서 에러가 나옵니다. 커스텀 태그를 만들 때, Mywikier