Direct Amazon Uploader Upload not working

Sep 1, 2009 at 10:20 PM

I've put a quick sample together to see how it works and it doesn't.  I uploaded the crossdomain.xml file to the S3 test bucket as well.  I'm not using SSL and my bucketname doesn't have any dots in it.  When I run the upload it just highlights the filename in yellow and displays this message at the bottom of the browser "Waiting for mybucket.s3.amazonws.com..."  My keys are correct, what is the problem? Thanks.

Here is the code

 

Default.aspx:

 

<%

<font size="2">

 

</font>

@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%

<font size="2">

 

</font>

@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>

<%

<font size="2">

 

</font>

@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.DirectAmazonUploader" %>

<!

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font><font size="2" color="#0000ff">

 

</font>

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font><font size="2" color="#0000ff">

 

</font>

html xmlns="http://www.w3.org/1999/xhtml">

<

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font><font size="2" color="#0000ff">

 

</font>

head runat="server">

 

<font size="2">

 

</font>

<title></title>

</

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font><font size="2" color="#0000ff">

 

</font>

head>

<

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font><font size="2" color="#0000ff">

 

</font>

body>

 

<font size="2">

 

</font>

<form id="form1" runat="server">

 

<font size="2">

 

</font>

<div>

 

<font size="2">

 

</font>

<fjx:FileUploader runat="server" ID="flashFileUploader"/>

 

<font size="2">

 

</font>

</div>

 

<font size="2">

 

</font>

</form>

</

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font><font size="2" color="#0000ff">

 

</font>

body>

</

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font><font size="2" color="#0000ff">

 

</font>

html>

Default.aspx.vb:

 

Partial

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font>
<font size="2" color="#0000ff">

 

</font>

Class _Default

 

<font size="2">

 

</font>

Inherits System.Web.UI.Page

 

<font size="2">

 

</font>

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

<font size="2">

 

</font>

Dim _AmazonUploader As New com.flajaxian.DirectAmazonUploader

_AmazonUploader.AccessKey =

<font size="2">

 

</font>

"access_key"

_AmazonUploader.SecretKey =

<font size="2">

 

</font>

"secret_key"

_AmazonUploader.BucketName =

<font size="2">

 

</font>

"mybucket"

_AmazonUploader.FileAccess = com.flajaxian.FileAccess.PublicReadWrite

flashFileUploader.Adapters.Add(_AmazonUploader)

flashFileUploader.MaxNumberFiles = 1

 

<font size="2">

 

</font>

End Sub

End

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font><font size="2" color="#0000ff">

 

</font>

Class

 

<font face="arial" size="2"><font size="2" color="#0000ff"><font size="2" color="#0000ff">

 

</font></font></font><font face="arial" size="2"><font size="2" color="#0000ff">

 

</font></font>

<font face="arial" size="2">

 

</font>

 

 

Sep 2, 2009 at 12:20 AM

Never mind, I resolved the issue.  I changed access settings to the crossdomain.xml file on S3 and it started to work.  It is strange though that it was a problem for FireFox but not for IE. Oh well.