Skip to content

Instantly share code, notes, and snippets.

@awswithdotnet
Last active April 3, 2022 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awswithdotnet/81893605822ce8916554218f253cb5ac to your computer and use it in GitHub Desktop.
Save awswithdotnet/81893605822ce8916554218f253cb5ac to your computer and use it in GitHub Desktop.
S3 Presigned Api UploadController Partial 3
GetPreSignedUrlRequest preSignedUrlRequest = new GetPreSignedUrlRequest
{
BucketName = bucketName,
Key = key,
Expires = DateTime.UtcNow.AddHours(createSignedUrlRequest.TimeToLiveInHours)
};
string preSignedUrl = client.GetPreSignedURL(preSignedUrlRequest);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment