Cannot upload file suddenly
Posted on 2008-10-17
I built a code to upload file and create directory. It did work yesterday. When I run it today, the file cannot be uploaded.
<input type="file" name="myimage">
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
DiskFileItemFactory factory = new DiskFileItemFactory(); //I added a breakpoint here, Source not found for WebappClassLoader.loadClass(String)
ServletFileUpload upload = new ServletFileUpload(factory);
List /*FileItem*/ items = upload.parseRequest(request);
Iterator /*FileItem*/ i = items.iterator();
Why this happen?