|
@@ -157,7 +157,7 @@ public class AliYunOssUtil {
|
|
|
} else if (filePath.contains(".json")) {
|
|
|
metadata.setContentType("application/json");
|
|
|
}
|
|
|
- ossClient.putObject(ossBucket, key, new File(filePath));
|
|
|
+ ossClient.putObject(ossBucket, key, new File(filePath),metadata);
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.toString() + filePath);
|