Image uploading in to Amazon s3

Posted by in C# category on for Intermediate level | Points: 250 | Views : 9279 red flag

We upload images to Amazon s3 because it serve the uploaded files more efficient content delivery network of Amazon.This article describes on how to upload image file to Amazon s3.


we uploading images to Amazone s3 mainly for speed up the retrieval and also for big storage space..


This article describes how to upload images to Amazone s3 buckets in c#.

Using the code

For uploading to Amazon s3,first Create a Bucket  and upload images to your Bucket. Your data is durably stored and backed by the Amazon S3 Service 

Name space Using:
using Amazon.S3.Model;
using Amazon.S3;
using Amazon;
Write the code in the upload button click.
 AmazonS3 client = AWSClientFactory.CreateAmazonS3Client("Access Key", "Acess secrete key");
 var request = new PutObjectRequest();
 request.FilePath = filePath;
 request.ContentType = file.ContentType;
 request.StorageClass = S3StorageClass.Standard;
 request.CannedACL = S3CannedACL.BucketOwnerFullControl;                    


Uploading images to Amazon S3 is uploading is quite simple and reduces the loading time of site. 


Page copy protected against web site content infringement by Copyscape

About the Author

Full Name: sini sreedhar
Member Level: Starter
Member Status: Member
Member Since: 12/20/2012 1:09:38 AM
Country: India
Ready to accept challenges at any time.....
more than one year experience in .net,css,javascript,html and ajax

Login to vote for this post.

Comments or Responses

Posted by: Vedantydv123 on: 2/13/2019 | Points: 25
Here So for those here on our website you will get the most easiest tricks to open file in windows 10 system for the user.

Login to post response

Comment using Facebook(Author doesn't get notification)