aspnet-devexpress-dot-web-13274c32.md
Contains settings that allow you to connect the Upload Control to Amazon Simple Storage Service (Amazon S3).
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class UploadControlAmazonSettings :
UploadControlUploadStorageSettingsBase
Public Class UploadControlAmazonSettings
Inherits UploadControlUploadStorageSettingsBase
The following members return UploadControlAmazonSettings objects:
| Library | Related API Members |
|---|---|
| ASP.NET Web Forms Controls | ASPxHtmlEditorUploadSettingsBase.AmazonSettings |
| ASPxUploadControl.AmazonSettings | |
| ASP.NET MVC Extensions | HtmlEditorFileSaveSettings.AmazonSettings |
| UploadControlBinderSettings.AmazonSettings | |
| UploadControlSettings.AmazonSettings |
Follow the steps below to connect the Upload Control to Amazon:
Amazon.Important
The AmazonFileSystemProvider uses an SSL connection to get data from Amazon. Due to SSL limitations, you cannot connect the control to a bucket whose name includes dots. Refer to the following topic for more information: Bucket naming rules.
The following example demonstrates how to connect the Upload Control to Amazon Simple Storage Service:
void Application_Start(object sender, EventArgs e) {
DevExpress.Web.AccountManager.RegisterAmazon("YourAmazonAccount","YourAccessKeyID","YourSecretAccessKey");
}
<dx:ASPxUploadControl ID="UploadControl" runat="server" UploadStorage="Amazon" ShowUploadButton="True" >
<AmazonSettings AccountName="YourAmazonAccount" BucketName="YourBucketName" Region="us-east-1" />
</dx:ASPxUploadControl>
Once the Upload Control uploads a file to cloud storage, you can use the key name of this file to access it. To obtain a file key name, use the FileNameInStorage property of an UploadedFile object.
Object StateManager PropertiesBase UploadControlUploadStorageSettingsBase UploadControlAmazonSettings
See Also
Amazon S3 REST API Introduction
AWS SDK for .NET documentation
Cloud Storage Account Management