jiangping
2023-10-02 6fb7d1967c39725b083c9cfad154a99b89749c77
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;
    }