Skip to content

Instantly share code, notes, and snippets.

Last active April 3, 2022 14:46
What would you like to do?
S3 Presigned Api UploadController Partial 2
string bucketName = "";
string key = Guid.NewGuid().ToString() + ".txt";
RegionEndpoint bucketRegion = RegionEndpoint.USEast1;
var client = new AmazonS3Client(bucketRegion);
var putRequest = new PutObjectRequest
BucketName = bucketName,
Key = key,
ContentBody = createSignedUrlRequest.Content
PutObjectResponse putObjectResponse = await client.PutObjectAsync(putRequest);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment