Skip to content

Commit 88c5073

Browse files
jiukerguozhi.li
andauthored
add content-type (#1488)
Co-authored-by: guozhi.li <guozhi.li@daocloud.io>
1 parent bb87f8d commit 88c5073

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functional/FunctionalTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,7 @@ public static void getPresignedPostFormData() throws Exception {
17251725

17261726
PostPolicy policy = new PostPolicy(bucketName, ZonedDateTime.now().plusDays(7));
17271727
policy.addEqualsCondition("key", objectName);
1728+
policy.addEqualsCondition("content-type", "image/png");
17281729
policy.addContentLengthRangeCondition(1 * MB, 4 * MB);
17291730
Map<String, String> formData = client.getPresignedPostFormData(policy);
17301731

0 commit comments

Comments
 (0)