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/*">