Quantcast
Channel: Developer Express Inc.
Viewing all articles
Browse latest Browse all 2388

CloudProviders: Connecting the ASP.NET File Manager and Upload Control to Amazon S3 Storage (Now available in v14.2)

$
0
0

What started as the preparations for a webinar ended as a really cool feature in v14.2!

You can now manage your files on Amazon S3 Storage with the ASPxFileManager because we’ve added brand new cloud providers, and you don’t need coding for it. Let’s see how you set it up:

Preparations on Amazon

After signing in or signing up at http://aws.amazon.com/, the Amazon Web Services overview is being displayed. You will first need to setup a user which is allowed to access the S3 Storage Buckets. This is done by clicking the Identity & Access Management link in the Administration & Security (IAM) Section:

In the dashboard which shows up, create a user by clicking the User menu item, and Create New Users:

AddUser

Enter the desired username (you are able to create several users in one go, but we will stick with one) and click Next:

AddUser2

Pay attention on the following screen which is only displayed once, click the hyperlink to get the users keys:

 AddUser3

AddUser4

Copy the indicated information to a save place because you will never see them again in Amazon!

After storing theses keys, you have to click on the orange box to go to the Services overview from where you can go back the AIM Dashboard. Now you can create a group with S3 Policies enabled:

AddGroup1

Give the group some logical name and click Next Step:

AddGroup2

In the Set Permissions screen, scroll down in the Select Policy Template section to select the Amazon S3 Full Policy:

AddGroup3

On the confirmation screen, click Next Step:

AddGroup4

In the Group Overview, click on the group name:

AddGroup5

And add the user to this group:

AddGroup6

 

AddGroup7

Now the security related things have been setup so you can create the S3 Bucket. Click the Orange Box in the Left Corner, and select S3:

S3Image1

On the Simple Storage welcome screen, click the Create Bucket button, enter the bucket name and select a region:

S3Image3

Connecting the ASPxFileManager to the bucket

In Visual Studio, drop an ASPxFileManager on a page or UserControl and specify the following properties:

Image 21

If you start your application, you’ll notice that you can start managing your bucket straight away!

Uploading directly with an ASPxUploadControl to the bucket

If you only want to upload files to Amazon S3 Storage, you can drop an ASPxUploadControl on your form and specify the following properties:

Image 22

You might want to specify some additional properties like ShowUploadButton = true, so you don’t need any additional coding at all.

If you prefer using Azure BlobStorage instead of Amazon S3, check here to find out how easy that is!


Viewing all articles
Browse latest Browse all 2388

Trending Articles