presignedPutObject method

Future<String> presignedPutObject(
  1. String bucket,
  2. String object,
  3. {int? expires}

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 bucket
  • objectName: name of the object
  • expires: expiry in seconds (optional, default 7 days)


Future<String> presignedPutObject(
  String bucket,
  String object, {
  int? expires,
}) {
  return presignedUrl('PUT', bucket, object, expires: expires);