Login Register

file uploader

in FileUploader.js (dojo-release-1.2.0b2) line no 244

_complete: function(dataArray){
        for(var i=0;i<this.fileList.length;i++){
            this.fileList[i].percent = 100;   
        }
        this.onProgress(this.fileList);
        this.fileList = [];
        this.onComplete(dataArray);
    },

is this correct? Because, in onComplete function I am not getting the correct values.

But when I changed the function as

_complete: function(dataArray){
        for(var i=0;i<this.fileList.length;i++){
            this.fileList[i].percent = 100;   
        }
        this.onProgress(this.fileList);
        this.onComplete(this.fileList);
        this.fileList = [];
    },
I am getting correct result. Is this a bug?