Multi-part Data
Recall this (slightly modified) example from the section on forms:
<form method=post
enctype=“multipart/form-data”
action=“http://sirah.csit.fsu.edu:8081/dbc/servlets/MultiPart”>
Course: <input name=course size=20> <p>
Students file: <input type=file name=students size=32> <p>
<input type=submit>
</form>
The simple getParam() approach does not appear to work for multi-part data (required for uploading files).
However, we can resort to a lower-level CGI-like approach—reading the posted data from an input stream, and decoding it “by hand”.