HTML 5 · Forms
Accept a file upload
A form that uploads files needs the multipart encoding.
<form method="post" enctype="multipart/form-data">
<input type="file" name="photo" accept="image/*">
</form>
HTML 5 · Forms
A form that uploads files needs the multipart encoding.
<form method="post" enctype="multipart/form-data">
<input type="file" name="photo" accept="image/*">
</form>
Was this page helpful?