Package com.firefun.FileUpload

Examples of com.firefun.FileUpload.Files


    return result;
  }

  public void delFiles(String ywid, String key_file, Object obj) {
    if (obj != null) {
      Files files = (Files) obj;
      files.delFile(key_file);
    }
  }
View Full Code Here


   * @version 1.0
   */
  public String getStMess(Object obj, String ywid) {
    String str_out = "";
    if (obj != null) {
      Files files = (Files) obj;
      for (int i = 0; i < files.getCount(); i++) {
        com.firefun.FileUpload.File myFile = files.getFile(i);
        if (!myFile.isMissing()) {
          str_out += "<tr>\n<td align=\"center\" class=\"mtabtab02\">"
              + myFile.getFileName() + "</td>\n";
          str_out += "<td align=\"center\" class=\"mtabtab02\">"
              + myFile.getFileExt() + "&nbsp;</td>\n";
View Full Code Here

    sql = "select sjdwid from sys_dept where dwid='" + dwid + "'";
    rst.EQuery(sql);
    String sjdwid = rst.getString(0, "sjdwid");

    if (obj != null) {
      Files files = (Files) obj;
      for (int i = 0; i < files.getCount(); i++) {
        com.firefun.FileUpload.File myFile = files.getFile(i);
        if (!myFile.isMissing()) {
          sql = "select SEQ_FF_UPLOAD.Nextval fileid from dual";
          rst.EQuery(sql);
          fileid = rst.getString(0, "fileid");
          // 增加更名
View Full Code Here

    if ((ywid == null) || "".equals(ywid)) {
      response.sendRedirect(url);
      System.out.println("未接收到ywid:::::::::::::文件上传部分");
    } else{
      Files files_temp = new Files();

      SmartUpload mySmartUpload = new SmartUpload();

      try {
        // Initialization
        mySmartUpload.initialize(config, request, response);

        // Upload
        mySmartUpload.upload();
        Files files = mySmartUpload.getFiles();
       
        //FileUtil fileutil = new FileUtil();
        //fileutil.upload(request, files, ywid, sslx);
        //System.out.println(files.getCount());
        //
        // 拼接files对象
        Object obj = request.getSession().getAttribute("se_files"+ywid);
        if (obj != null) {
          files_temp = (Files) obj;
        }
        for (int i = 0; i < files.getCount(); i++) {
          File myFile = files.getFile(i);
          if (!myFile.isMissing()) {
            files_temp.addFile(myFile);
          }
        }
        request.getSession().setAttribute("se_files"+ywid, files_temp);
View Full Code Here

TOP

Related Classes of com.firefun.FileUpload.Files

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.