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:
Enter the desired username (you are able to create several users in one go, but we will stick with one) and click Next:
Pay attention on the following screen which is only displayed once, click the hyperlink to get the users keys:
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:
Give the group some logical name and click Next Step:
In the Set Permissions screen, scroll down in the Select Policy Template section to select the Amazon S3 Full Policy:
On the confirmation screen, click Next Step:
In the Group Overview, click on the group name:
And add the user to this group:
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:
On the Simple Storage welcome screen, click the Create Bucket button, enter the bucket name and select a region:
Connecting the ASPxFileManager to the bucket
In Visual Studio, drop an ASPxFileManager on a page or UserControl and specify the following properties:
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:
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!