reset upload after call
[roojs1] / Roo / bootstrap / ButtonUploader.js
index a76c31b..506d12d 100644 (file)
@@ -124,7 +124,10 @@ Roo.extend(Roo.bootstrap.ButtonUploader, Roo.bootstrap.Button,  {
         if(typeof(this.selectorEl.dom.files) == 'undefined' || !this.selectorEl.dom.files.length){
             return;
         }
-        this.fireEvent('uploaded', this,  this.selectorEl.dom.files );
+        var files = Array.prototype.slice.call(this.selectorEl.dom.files);
+        this.selectorEl.dom.reset();
+        
+        this.fireEvent('uploaded', this,  files );
         
     },