Trường file để gửi tệp
Trường file để gửi tệp được tạo bằng
thẻ input
với thuộc tính type có giá trị file.
Ví dụ
Hãy xem cách phần tử input loại này hoạt động:
<input type="file" name="file">
:
Ví dụ
Có thể tạo nhiều trường để chọn tệp:
<input type="file" name="file1">
<input type="file" name="file2">
: