presignedPutObject method
Generate a presigned URL for PUT. Using this URL, the browser can upload to S3 only with the specified object name.
bucketName
: name of the bucketobjectName
: name of the objectexpires
: expiry in seconds (optional, default 7 days)
Implementation
Future<String> presignedPutObject(
String bucket,
String object, {
int? expires,
}) {
MinioInvalidBucketNameError.check(bucket);
MinioInvalidObjectNameError.check(object);
return presignedUrl('PUT', bucket, object, expires: expires);
}