chenhj
9 天以前 dac0fc7d2855d3477f8d440888b0883507537b1b
src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java
@@ -25,7 +25,7 @@
    /**
     * 默认大小 50M
     */
    public static final long DEFAULT_MAX_SIZE = 50 * 1024 * 1024;
    public static final long DEFAULT_MAX_SIZE = 50 * 1024 * 1024L;
    /**
     * 默认的文件名最大长度 100
@@ -144,7 +144,8 @@
    {
        int dirLastIndex = RuoYiConfig.getProfile().length() + 1;
        String currentDir = StringUtils.substring(uploadDir, dirLastIndex);
        return Constants.RESOURCE_PREFIX + "/" + currentDir + "/" + fileName;
//        return Constants.RESOURCE_PREFIX + "/" + currentDir + "/" + fileName;
        return currentDir + "/" + fileName;
    }
    /**