how to use html to post multipart/form-data <p>I have form, I want to post through multipart/form-data. How to use html to specify each fields' type.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt; New Student &lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form action="http://10.128.157.12:8080/student" method="post" enctype="multipart/form-data"&gt; student first name: &lt;input type="text" size="100" name="firstname" value="Michael"/&gt;&lt;br&gt; student last name: &lt;input type="text" size="100" name="lastname" value="William"/&gt;&lt;br&gt; student age: &lt;input type="text" size="100" name="age" value="34" /&gt; &lt;br&gt; &lt;input type="submit" value="Submit" autofocus="autofocus" /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>