AWS S3 ParameterCollection class

0

I am using AWS S3 .NET SDK for presigning the image url, I need to add 4 custom parameters part of the image request. when i add the parameters using amazon S3 Paremetercollection object, it appends "X-" to the key that i add into parameter collection, External application also uses my presigned url and trying to add few more params but those are not having "X-". Because of this presignedurl sigtnature mistmatch arises, is there a way i can skip the appending of "X-"

this is the AWS s3 parameter collection class https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Services/S3/Custom/Model/ParameterCollection.cs

The x- is added to the parameter key in the ParameterCollection.cs file:

public string this[string name] { get { if (!name.StartsWith("x-", StringComparison.OrdinalIgnoreCase)) name = "x-" + name;

    string value;
    if (values.TryGetValue(name, out value))
      return value;

    return null;
  }
  set {
    if (!name.StartsWith("x-", StringComparison.OrdinalIgnoreCase))
      name = "x-" + name;

    values[name] = value;
  }
}
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠