projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
744e56f
)
Roo/bootstrap/ButtonUploader.js
author
Alan Knowles
<alan@roojs.com>
Wed, 2 Jun 2021 06:51:32 +0000
(14:51 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 2 Jun 2021 06:51:32 +0000
(14:51 +0800)
Roo/bootstrap/ButtonUploader.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/ButtonUploader.js
b/Roo/bootstrap/ButtonUploader.js
index
c9111da
..
88bde1c
100644
(file)
--- a/
Roo/bootstrap/ButtonUploader.js
+++ b/
Roo/bootstrap/ButtonUploader.js
@@
-129,38
+129,15
@@
Roo.extend(Roo.bootstrap.CardUploader, Roo.bootstrap.Button, {
return;
}
return;
}
- Roo.each(this.selectorEl.dom.files, function(file){
- this.fireEvent('uploaded', this, [file]);
+ Roo.each(this.selectorEl.dom.files, function(file){
+ var url = this.urlAPI.createObjectURL(file); // not sure...
+ this.fireEvent('uploaded', this, [file, url]);
}, this);
},
}, this);
},
-
-
-
-
- addFile : function(file)
- {
-
- if(typeof(file) === 'string'){
- throw "Add file by name?"; // should not happen
- return;
- }
-
- if(!file || !this.urlAPI){
- return;
- }
-
- // file;
- // file.type;
-
- var _this = this;
-
-
- var url = _this.urlAPI.createObjectURL( file);
-
- },
+
/**
* addCard - add an Attachment to the uploader
/**
* addCard - add an Attachment to the uploader