Posts

Showing posts with the label amazon s3

Create New File In Amazon S3 Cloud in asp.net c#

Below code use to create or generate new file .txt in Amazon S3 Cloud in asp.net c#.          public void CreateFileInAmazon()         {             try             {                 AWSCredentials credentials = new BasicAWSCredentials("accesskey", "secretkey");                 AmazonS3Config config = new AmazonS3Config();                 config.ServiceURL = "s3.amazonaws.com";                 config.RegionEndpoint = Amazon.RegionEndpoint.GetBySystemName("ap-south-1");                 AmazonS3Client client;                 using (client = new AmazonS3Client(credentials, config))                 ...