Examples of storeByFilename()


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

        String ftpUrl = ftp.getUrl();
        if (!StringUtils.isBlank(filename)) {
          filename = filename.substring(ftpUrl.length());
          if (mark) {
            File tempFile = mark(file, conf);
            fileUrl = ftp.storeByFilename(filename,
                new FileInputStream(tempFile));
            tempFile.delete();
          } else {
            fileUrl = ftp.storeByFilename(filename, file
                .getInputStream());
View Full Code Here

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

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

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

        Ftp ftp = site.getUploadFtp();
        String ftpUrl = ftp.getUrl();
        if (!StringUtils.isBlank(filename)
            && 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前缀
View Full Code Here

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

        String ftpUrl = ftp.getUrl();
        if (!StringUtils.isBlank(filename)) {
          filename = filename.substring(ftpUrl.length());
          if (mark) {
            File tempFile = mark(file, conf);
            fileUrl = ftp.storeByFilename(filename,
                new FileInputStream(tempFile));
            tempFile.delete();
          } else {
            fileUrl = ftp.storeByFilename(filename, file
                .getInputStream());
View Full Code Here

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

            File tempFile = mark(file, conf);
            fileUrl = ftp.storeByFilename(filename,
                new FileInputStream(tempFile));
            tempFile.delete();
          } else {
            fileUrl = ftp.storeByFilename(filename, file
                .getInputStream());
          }
        } else {
          if (mark) {
            File tempFile = mark(file, conf);
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.