I want to post a form which have many fields, one of them is a file, when I make like this
<form action="MediaManagementServlet" name="addMedia" method="post" enctype="multipart/form-data">
// many fileds
<label>upload file</label>
<input type="file" name="file" id="fileName"/>
it doesn't reach the servlet, but when I make like this
<form action="MediaManagementServlet" name="addMedia" method="post" >
it reach the servelet, but when I get the parameter of file it prints null ?
where's the point that is hidden for me?