jiangping
2023-09-22 a4b2acdd6424ed1f5771a94ee380972dbffade45
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;
    }