S3 Presigned Api UploadController Partial 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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