diff --git a/jsowell-common/src/main/java/com/jsowell/common/util/file/FileUploadUtils.java b/jsowell-common/src/main/java/com/jsowell/common/util/file/FileUploadUtils.java index 3e81ed052..401d397cb 100644 --- a/jsowell-common/src/main/java/com/jsowell/common/util/file/FileUploadUtils.java +++ b/jsowell-common/src/main/java/com/jsowell/common/util/file/FileUploadUtils.java @@ -6,7 +6,6 @@ import com.jsowell.common.constant.Constants; import com.jsowell.common.exception.file.FileNameLengthLimitExceededException; import com.jsowell.common.exception.file.FileSizeLimitExceededException; import com.jsowell.common.exception.file.InvalidExtensionException; -import com.jsowell.common.util.DateUtils; import com.jsowell.common.util.StringUtils; import org.apache.commons.io.FilenameUtils; import org.springframework.web.multipart.MultipartFile; @@ -166,7 +165,8 @@ public class FileUploadUtils { */ public static final String extractFilename(MultipartFile file) { // return StringUtils.format("{}/{}_{}.{}", DateUtils.datePath(), FilenameUtils.getBaseName(file.getOriginalFilename()), Seq.getId(Seq.uploadSeqType), getExtension(file)); - return StringUtils.format("{}/{}.{}", DateUtils.datePath(), FilenameUtils.getBaseName(file.getOriginalFilename()), getExtension(file)); + // return StringUtils.format("{}/{}.{}", DateUtils.datePath(), FilenameUtils.getBaseName(file.getOriginalFilename()), getExtension(file)); + return StringUtils.format("/{}.{}", FilenameUtils.getBaseName(file.getOriginalFilename()), getExtension(file)); } public static final File getAbsoluteFile(String uploadDir, String fileName) throws IOException {