<form action="control_root.jsp" method="post" enctype="multipart/form-data"> <input type="file" accept="image/png" id="name" name="imgFile"/> </form>