| | |
| | | import java.io.File;
|
| | | import java.io.IOException;
|
| | | import org.apache.commons.io.FilenameUtils;
|
| | | import org.springframework.beans.factory.annotation.Value;
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | | import com.ruoyi.common.core.exception.file.FileNameLengthLimitExceededException;
|
| | | import com.ruoyi.common.core.exception.file.FileSizeLimitExceededException;
|
| | |
| | | * 默认的文件名最大长度 100
|
| | | */
|
| | | public static final int DEFAULT_FILE_NAME_LENGTH = 100;
|
| | |
|
| | | /**
|
| | | * 资源映射路径 前缀
|
| | | */
|
| | | @Value("${file.prefix}")
|
| | | public String localFilePrefix;
|
| | |
|
| | | /**
|
| | | * 根据文件路径上传
|