diff --git a/plugin.xml b/plugin.xml
index 9d0ca49..b896706 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -14,6 +14,9 @@
[2020-06-15]支持区域设置。
[2020-06-12]初始化插件。
]]>
+
+ *
+
diff --git a/src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java b/src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java
index bb2318b..ce3e3dc 100644
--- a/src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java
+++ b/src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java
@@ -118,6 +118,7 @@ public class S3ResourceRepository extends BaseResourceRepository {
metadata = s3.getObjectMetadata(bucket, path);
} catch (Exception e) {
metadata = new ObjectMetadata();
+ metadata.setContentLength(data.length);
}
s3.putObject(bucket, path, new ByteArrayInputStream(data), metadata);
}