Mr.Zhang
2023-09-22 b0cd187ac6eb1df56a572ac52afc42869269fea9
server/service/src/main/java/com/doumee/core/utils/aliyun/ALiYunUtil.java
@@ -160,7 +160,7 @@
     * @throws FileNotFoundException
     */
    public void uploadFile(String bucketName, String key, File file, String mime)
    public boolean uploadFile(String bucketName, String key, File file, String mime)
            throws OSSException, ClientException, FileNotFoundException {
        // 判断是否存在,不存在创建
        isExistBucket(bucketName);
@@ -174,6 +174,7 @@
        InputStream input = new FileInputStream(file);
        client.putObject(bucketName, key, input, objectMeta);
        return true;
    }