diff options
Diffstat (limited to 'src/rgw/rgw_rest_s3.cc')
-rw-r--r-- | src/rgw/rgw_rest_s3.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index a6e9414a416..333a55c02fc 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -804,6 +804,11 @@ int RGWPostObj_ObjStore_S3::get_params() if (r < 0) return r; + if (post_policy.min_length > -1 && post_policy.max_length > -1) { + min_allowable_content_length = post_policy.min_length; + max_allowable_content_length = post_policy.max_length; + } + return 0; } @@ -867,7 +872,6 @@ int RGWPostObj_ObjStore_S3::get_policy() ldout(s->cct, 0) << "POST policy: " << decoded_policy.c_str() << dendl; - RGWPolicy post_policy; int r = post_policy.from_json(decoded_policy); if (r < 0) { ldout(s->cct, 0) << "failed to parse policy" << dendl; |