Skip to content

Commit

Permalink
add content-type (#1488)
Browse files Browse the repository at this point in the history
Co-authored-by: guozhi.li <[email protected]>
  • Loading branch information
jiuker and guozhi.li committed Sep 22, 2023
1 parent bb87f8d commit 88c5073
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functional/FunctionalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,7 @@ public static void getPresignedPostFormData() throws Exception {

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

Expand Down

0 comments on commit 88c5073

Please sign in to comment.