flashuploader.js revision 87fff29257e74dac31f23eac9e31c028a551057f
var substitute = Y.substitute;
function FlashUploader(config) {
}
_swfReference: null,
_uploadQueue: null,
_swfContainerId: null,
initializer : function () {
this.publish("fileselect");
},
_uploadEventHandler : function (event) {
case "file:uploadprogress":
break;
case "uploadqueue:totaluploadprogress":
break;
case "file:uploadcomplete":
break;
case "uploadqueue:alluploadscomplete":
break;
case "uploadqueue:uploaderror":
break;
}
},
_setMultipleFiles : function () {
if (this._swfReference) {
}
},
_setFileFilters : function () {
}
},
_updateFileList : function (ev) {
fileConfObjects = [],
parsedFiles = [],
swfRef = this._swfReference;
var newFileConf = {};
});
});
this.set("fileList",
},
renderUI : function () {
{swfContainerId: this._swfContainerId})));
fixedAttributes: {wmode: "transparent", allowScriptAccess:"always", allowNetworking:"all", scale: "noscale"},
};
},
bindUI : function () {
this._setMultipleFiles();
this._setFileFilters();
}, this);
},
syncUI : function () {
},
errorAction: "restart",
});
this._uploadQueue.startUpload();
}
},
// Starting upload of all selected files.
// Creating a new upload queue with the current file list
errorAction: "restart",
});
// Subscribing to events
// Starting the upload.
this._uploadQueue.startUpload();
},
errorAction: "restart",
});
this._uploadQueue.startUpload();
}
},
{
FLASH_CONTAINER: "<div id='{swfContainerId}' style='position:absolute; top:0px; left: 0px; width:100%; height:100%'></div>",
NAME: "flashuploader",
ATTRS: {
},
value: false
},
fileFilters: {
value: null
},
appendNewFiles : {
value: true
},
simLimit: {
value: 2,
}
},
fileList: {
value: []
},
value: []
},
uploadURL: {
value: ""
},
swfURL: {
}
}
});