fex-team / webuploader

It's a new file uploader solution!
http://fex.baidu.com/webuploader/
BSD 3-Clause "New" or "Revised" License
7.7k stars 2.34k forks source link

flash模式下的WUFile对象与html5模式下的不同,导致FileReader读取文件时报错(webuploader-0.1.5) #775

Open 2bright opened 9 years ago

2bright commented 9 years ago

flash模式下的WUFile对象与html5模式下的不同,导致FileReader读取文件(fr.readAsDataURL(file.source)) ,报下面的错误. Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.

2bright commented 9 years ago

flash模式下,如果picker元素被隐藏(display:none;,有文件正在上传时希望把按钮隐藏掉),上传时下面的代码会报错,无法上传。 this.flashExec = function( comp, fn ) { var flash = me.getFlash(), args = Base.slice( arguments, 2 ); return flash.exec( this.uid, comp, fn, args );//报错flash.exec is undefined };

另外,picker按钮隐藏后再显示,就无法点击了。