jsjoy / awesomeuploader

Automatically exported from code.google.com/p/awesomeuploader
Other
2 stars 1 forks source link

Autostart and standard upload combination problem #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Activate autostart
2. Activate use of standard upload instead of swfupload
3. Try to upload a file

What is the expected output? What do you see instead?
The javascript error "fileInfo is undefined" can be shown in firebug.

What version of the product are you using? On what operating system?
Awesome Uploader 2.0 beta 3 version

Please provide any additional information below.

When using awesome upload with autostart and standard upload options activated, 
an javascript error can be shown in firebug. The problem is that in function 
standardUploadFileSelected, in line 531 there is an invocation to function 
standardUploadStart without the fileinfo parameter. 

Original code:
if(false !== this.fireEvent('fileselected', this, Ext.apply({},fileInfo) ) ){
    if(this.autoStartUpload){
    this.standardUploadStart();
    }
    this.fileQueue[fileInfo.id] = fileInfo;
}

The code should be:
if(false !== this.fireEvent('fileselected', this, Ext.apply({},fileInfo) ) ){
    if(this.autoStartUpload){
    this.standardUploadStart(fileInfo);
    }
    this.fileQueue[fileInfo.id] = fileInfo;
}

Thanks for that fantastic job.

Original issue reported on code.google.com by fcol...@gmail.com on 17 Feb 2011 at 9:56

GoogleCodeExporter commented 9 years ago
Thanks for the report.

Original comment by and...@jsjoy.com on 25 Feb 2011 at 7:32

GoogleCodeExporter commented 9 years ago
Fixed in SVN r10. Thanks again!

Original comment by and...@jsjoy.com on 25 Feb 2011 at 7:44