下面有源码链接,不过只提供到2002-11-03,需要赶快下啊,过时无效。http://202.193.64.35/water/jspupload.zip

解决方案 »

  1.   

    我自己的简单方法:(很有效的)
    <%
      String fileName = new String(request.getParameter("upfile").getBytes("8859_1"));
      
      int i=fileName.lastIndexOf("\\");
      String fl=fileName.substring(i+1,fileName.length());
      FileInputStream is = new FileInputStream(fileName);
      FileOutputStream os =new FileOutputStream(fl);
      int ch;
      while ((ch = is.read()) >= 0)
        os.write(ch);    os.close();
        is.close();
    %>
      

  2.   

    用SmartUpload组件
    hezhi007(key)的方法只适用于本机做服务器,自己传给自己,如果服务器在远程的话就不行了