Yes, I am using the MultipartRequest class from the oreilly site, but I still have an error when I try to utilize the class. I put the MultipartRequest class file in the same folder as the servlet that calls its constructor. Here is the error: C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEBINF\classes\com\oreilly\servlet\uploadservlet.java:17: cannot access MultipartRequest bad class file: C:\Program Files\Apache Tomcat 4.0\webapps\ROOT\WEB-INF\classes\com\oreilly\servlet\MultipartRequest.class class file contains wrong class: com.oreilly.servlet.MultipartRequest Please remove or make sure it appears in the correct subdirectory of the classpath. MultipartRequest request = new MultipartRequest(req,"MyUploads\test"); ^ 1 error Process completed.
The best way for using the class is including the jar file in the WEB-INF/lib directory. You dont need to put the servlet which calls the constructor in the same dir. Anyway, make sure you have in the classpath not only the MultipartRequest class, but the complete package or at least the other classes used by MultipartReques class (like MultipartParser, Part FilePart, ParamPart, FileRenamePolicy, etc...)