code: public void doProcess(HttpServletRequest req, HttpServletResponse res) 
  		throws ServletException, IOException
  	{
  		PrintStream out = System.out;
  		Properties properties = new Properties();
  		String strTargetDirectory = this.getDestDirectory();
  		
  		String strReceiveMessage = gstrBlank;
  		try	{
  			MultipartRequest multi = new MultipartRequest(req, strTargetDirectory, MAX_SIZE);
  
  			this.parseProperties(properties, multi);
  			if (DEBUG)
  				out.println();
  			if (DEBUG)
  				out.println("Files:");
  			Enumeration<?> files = multi.getFileNames();
  			while (files.hasMoreElements())
  			{
  				String name = (String)files.nextElement();
  				String filename = multi.getFilesystemName(name);
  				String type = multi.getContentType(name);
  				File f = multi.getFile(name);
  				if (DEBUG)
  				{
  					out.println("name: " + name);
  					out.println("filename: " + filename);
  					out.println("type: " + type);
  					if (f != null) {
  						out.println("f.toString(): " + f.toString());
  						out.println("f.getName(): " + f.getName());
  						out.println("f.exists(): " + f.exists());
  						out.println("f.length(): " + f.length());
  						out.println();
  					}
  				}
  
  				if (f != null)
  					strReceiveMessage += this.successfulFileUpload(f, properties);
  			}
  		} catch (IOException ex)	{
  			String strError = ex.getMessage();
  			if (strError.toLowerCase().indexOf("isn't multipart/form-data") != -1)
  				strReceiveMessage = gstrBlank;	// Didn't specify a file (probably first time through)
  			else
  				strReceiveMessage = "<p>Previous upload not successful. Error: " + ex.getMessage() + "</p>" + RETURN;
  		}
  		this.sendForm(req, res, strReceiveMessage, properties);
  	}
docs: Process an HTML get or post.
  @exception	ServletException From inherited class.
  @exception	IOException From inherited class.