diff --git a/src/main/java/com/pig4cloud/plugin/oss/http/OssEndpoint.java b/src/main/java/com/pig4cloud/plugin/oss/http/OssEndpoint.java index aa74949..7cf581c 100755 --- a/src/main/java/com/pig4cloud/plugin/oss/http/OssEndpoint.java +++ b/src/main/java/com/pig4cloud/plugin/oss/http/OssEndpoint.java @@ -99,7 +99,7 @@ public S3ObjectSummary createObject(@RequestBody @NotNull MultipartFile object, InputStream inputStream = object.getInputStream(); String name = object.getOriginalFilename(); - ossTemplate.putObject(bucketName, name,inputStream, object.getSize(), object.getContentType()); + ossTemplate.putObject(bucketName, name, inputStream, object.getSize(), object.getContentType()); S3Object objectInfo = ossTemplate.getObjectInfo(bucketName, name); ObjectMetadata objectMetadata = objectInfo.getObjectMetadata(); S3ObjectSummary objectSummary = new S3ObjectSummary(); @@ -120,8 +120,7 @@ public S3ObjectSummary createObject(@RequestBody @NotNull MultipartFile object, @PathVariable @NotBlank String bucketName, @PathVariable @NotBlank String objectName) { @Cleanup InputStream inputStream = object.getInputStream(); - ossTemplate.putObject(bucketName, objectName,inputStream , object.getSize(), - object.getContentType()); + ossTemplate.putObject(bucketName, objectName, inputStream, object.getSize(), object.getContentType()); S3Object objectInfo = ossTemplate.getObjectInfo(bucketName, objectName); ObjectMetadata objectMetadata = objectInfo.getObjectMetadata(); S3ObjectSummary objectSummary = new S3ObjectSummary();