Direct Amazon Upload - Javascript Error

Sep 15, 2009 at 8:58 PM
Direct Amazon Upload not working at all. Here's my ASPX:
<fjx:FileUploader ID="FileUploader1" runat="server">
            BucketName=""   />
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.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;


Sep 15, 2009 at 9:12 PM

My problem is that I am using cookieless sessions!

Does anyone know how to ensure this will still work while using cookieless sessions? 

ie. <sessionState cookieless="UseUri"></sessionState>



Sep 16, 2009 at 1:12 AM

The control is not designed for cookieless session but you have the source so it shouldn't be very hard to add the cookie ID to the request.