Direct Amazon Upload not working at all. Here's my ASPX:
<fjx:FileUploader ID="FileUploader1" runat="server">
<Adapters>
<fjx:DirectAmazonUploader
AccessKey="WebConfig:AmazonAccessKey"
SecretKey="WebConfig:AmazonSecretKey"
BucketName="abc123.s3.amazonaws.com" />
</Adapters>
</fjx:FileUploader>
I'm getting a javascript syntax error on the line 122 in the function below. ie: this._arr = [];
My bucket is working fine (tested it in S3 Firefox Organizer) but it errors before it even attempts to upload the file.
Note: For regular FileUploader there is no problem. I have both DLLS referenced (on top of page and in BIN) and the web.config values are filled in correctly.
_processRequest: function(json){
var files = eval("["+json+"]")[0];
this._arr = [];
for(var j = 0; j < files.length; j++){
var f = files[j];
var fi = this._uploader.getFileInfoByID(f.i);
var keyParts = f.k.split("/");
var name = keyParts[keyParts.length - 1];
if(name != fi.name){ fi.changedName = name; }
this._arr.push({key:"key", value:f.k, fileID:f.i});
this._arr.push({key:"Policy", value:f.p, fileID:f.i});
this._arr.push({key:"Signature", value:f.s, fileID:f.i});
this._arr.push({key:"Content-Type", value:f.t, fileID:f.i});
}
this._arr.push({key:"acl", value:this._alc, fileID:0});
this._arr.push({key:"x-amz-meta-uuid", value:this._uuid, fileID:0});
this._arr.push({key:"AWSAccessKeyId", value:this._awsid, fileID:0});
},
_error: function(e){
for(var i = 0; i < this._errorHandlers.length; i++) this._errorHandlers[i](e);
},
_addPath: function(name){
return this._path + name;
}