jiaosong
2023-09-20 ebcc7c72663ae90d8960a6b027e26425e0a869e1
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;
    }