Examples of storeByExt()


Examples of com.jeecms.core.entity.Ftp.storeByExt()

        fileUrl = request.getContextPath() + dbFilePath + fileUrl;
      } else if (site.getUploadFtp() != null) {
        Ftp ftp = site.getUploadFtp();
        if (mark && isImg) {
          File tempFile = mark(uplFile, conf);
          fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
              new FileInputStream(tempFile));
          tempFile.delete();
        } else {
          fileUrl = ftp.storeByExt(site.getUploadPath(), ext, uplFile
              .getInputStream());
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.storeByExt()

          File tempFile = mark(uplFile, conf);
          fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
              new FileInputStream(tempFile));
          tempFile.delete();
        } else {
          fileUrl = ftp.storeByExt(site.getUploadPath(), ext, uplFile
              .getInputStream());
        }
        // 加上url前缀
        fileUrl = ftp.getUrl() + fileUrl;
      } else {
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.storeByExt()

                .getInputStream());
          }
        } else {
          if (mark) {
            File tempFile = mark(file, conf);
            fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
                new FileInputStream(tempFile));
            tempFile.delete();
          } else {
            fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
                file.getInputStream());
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.storeByExt()

            File tempFile = mark(file, conf);
            fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
                new FileInputStream(tempFile));
            tempFile.delete();
          } else {
            fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
                file.getInputStream());
          }
          // 加上url前缀
          fileUrl = ftpUrl + fileUrl;
        }
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.storeByExt()

        // 加上访问地址
        fileUrl = request.getContextPath() + dbFilePath + fileUrl;
      } else if (site.getUploadFtp() != null) {
        Ftp ftp = site.getUploadFtp();
        String ftpUrl = ftp.getUrl();
        fileUrl = ftp.storeByExt(site.getUploadPath(), ext, file
            .getInputStream());
        // 加上url前缀
        fileUrl = ftpUrl + fileUrl;
      } else {
        String ctx = request.getContextPath();
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.storeByExt()

        // 加上访问地址
        fileUrl = request.getContextPath() + dbFilePath + fileUrl;
      } else if (site.getUploadFtp() != null) {
        Ftp ftp = site.getUploadFtp();
        String ftpUrl = ftp.getUrl();
        fileUrl = ftp.storeByExt(site.getUploadPath(), ext, file
            .getInputStream());
        // 加上url前缀
        fileUrl = ftpUrl + fileUrl;
      } else {
        String ctx = request.getContextPath();
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.storeByExt()

            && FilenameUtils.getExtension(filename).equals(ext)) {
          filename = filename.substring(ftpUrl.length());
          fileUrl = ftp.storeByFilename(filename, file
              .getInputStream());
        } else {
          fileUrl = ftp.storeByExt(site.getUploadPath(), ext, file
              .getInputStream());
          // 加上url前缀
          fileUrl = ftpUrl + fileUrl;
        }
      } else {
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.storeByExt()

        fileUrl = request.getContextPath() + dbFilePath + fileUrl;
      } else if (site.getUploadFtp() != null) {
        Ftp ftp = site.getUploadFtp();
        if (mark && isImg) {
          File tempFile = mark(uplFile, conf);
          fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
              new FileInputStream(tempFile));
          tempFile.delete();
        } else {
          fileUrl = ftp.storeByExt(site.getUploadPath(), ext, uplFile
              .getInputStream());
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.storeByExt()

          File tempFile = mark(uplFile, conf);
          fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
              new FileInputStream(tempFile));
          tempFile.delete();
        } else {
          fileUrl = ftp.storeByExt(site.getUploadPath(), ext, uplFile
              .getInputStream());
        }
        // 加上url前缀
        fileUrl = ftp.getUrl() + fileUrl;
      } else {
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.storeByExt()

                .getInputStream());
          }
        } else {
          if (mark) {
            File tempFile = mark(file, conf);
            fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
                new FileInputStream(tempFile));
            tempFile.delete();
          } else {
            fileUrl = ftp.storeByExt(site.getUploadPath(), ext,
                file.getInputStream());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.