setObjectACL method

Future<void> setObjectACL(
  1. String bucket,
  2. String object,
  3. String policy
)

Implementation

Future<void> setObjectACL(String bucket, String object, String policy) async {
  MinioInvalidBucketNameError.check(bucket);
  MinioInvalidObjectNameError.check(object);

  await _client.request(
    method: 'PUT',
    bucket: bucket,
    object: object,
    queries: {'acl': policy},
  );
}