private String filePathName; static public final String ROOTPATH="D:\\"; static public final int bufferSize=1024; static public final String SUCCESS="yes"; public String shangchuan(){ try{ filePathName= new String(filePathName.getBytes("ISO8859-1"),"utf-8"); //将传进来的值中誉含??转为段虚明汉字 File file=new File(filePathName); if(file.exists()==false) {System.out.println("文件不存在");return "error";} String newFilename=file.getName();