Flajaxian AmazonUploader is adapter for the Flajaxian FileUploader .NET web control designed for asynchronous file upload to an Amazon Service of multiple files at the same time, without a page post back and with a progress bar indicating the current upload progress. This control and adapter do not require full trust environment. Flajaxian FileUploader uses Adobe Flash Player 8 for the file upload.

In order to install the control and the adapter you need to follow these steps:

  1. Place com.flajaxian.FileUploader.dll and com.flajaxian.AmazonUploader.dll in the BIN folder of your web server
  2. Add the following tags at the top of your aspx page:
    <%@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>
    <%@ Register TagPrefix="fjxau" Namespace="com.flajaxian.AWS" Assembly="com.flajaxian.AmazonUploader" %>
    
  3. Add the following tags inside the BODY element of the ASPX page, where you would like to see the FileUploader
    <fjx:FileUploader ID="FileUploader1" runat="server" >
        <Adapters>
            <fjxau:AmazonUploader
                    AccessKey="WebConfig:AmazonAccessKey"
                    SecretKey="WebConfig:AmazonSecretKey"
                    BucketName="media.flajaxian.com">
                        <AccessControlList>
                            <fjxau:AccessControl URI="http://acs.amazonaws.com/groups/global/AllUsers" Permission="READ" />
                            <fjxau:AccessControl EmailAddress="john@flajaxian.com" Permission="FULL_CONTROL" />
                        </AccessControlList>
                </fjxau:AmazonUploader>
        </Adapters>
    </fjx:FileUploader>
    

Here you specify that Access Key and Secret Key are defined in the web.config in section configuration - appSettings as follow:

  <appSettings>
    <add key="AmazonAccessKey" value="ABCDEFGHKL1234567890" />
    <add key="AmazonSecretKey" value="ABCD1234ABCD1234ABCD1234ABCD1234ABCD1234" />
  </appSettings>

The Bucket Name is set to be media.flajaxian.com. We have set also read permission for all the users and full control for the user registered with the Amazon Service with e-mail: john@flajaxian.com

You can also enter the Access Key or Secret Key directly in the definition of the control inside the aspx page.

You may want to redefine the values in web.config file for the request timeout and maximum file size. You can do that in the section configuration - system.web as follow:

<httpRuntime executionTimeout="1800" 
              maxRequestLength="1048576" 
              useFullyQualifiedRedirectUrl="false" />

In this case we set timeout to 1800 seconds or 30 minutes and file size to 1048576KB or 1GB