Is that possible to upload a file into 2 different folders in the same time ? The problem I'm having is i can only upload 1 file into 1 folder only.
try{
private String uploadPathBig = "D:/dataBig/";
private String uploadPathSmall ="D:/dataSmall/";
private int maxFileSize = 1024 * 1024 *100000 ;
MultipartParser parser = new MultipartParser(request,maxFileSize);
Part _part = null;
if ((_part = parser.readNextPart()) !=null){
if (_part.isFile()){
FilePart fPart =(FilePart) _part;
fPart.writeTo(new java.io.File(uploadPathBig));
String name = fPart.getFileName();
System.out.println("name="+name);
}
}
}catch (java.io.IOException ioe){
throw new java.io.IOException("IOException occureed in:"+ getClass().getName());
}
} }