File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed
app/code/Magento/Ui/view/base/web Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright © Magento, Inc. All rights reserved.
3
- * See COPYING.txt for license details .
2
+ * Copyright 2015 Adobe
3
+ * All Rights Reserved .
4
4
*/
5
5
6
6
/**
@@ -14,6 +14,7 @@ define([
14
14
15
15
return Abstract . extend ( {
16
16
defaults : {
17
+ value : '' ,
17
18
links : {
18
19
value : ''
19
20
}
@@ -47,6 +48,16 @@ define([
47
48
this . formId = namespace [ 0 ] ;
48
49
49
50
return this ;
51
+ } ,
52
+
53
+ /**
54
+ * Set the file input value
55
+ *
56
+ * @param {FileUploader } fileUploader - UI Class
57
+ * @param {Event } e
58
+ */
59
+ setFileValue : function ( fileUploader , e ) {
60
+ this . value ( e . target . files . length ? e . target . files . length : '' ) ;
50
61
}
51
62
} ) ;
52
63
} ) ;
Original file line number Diff line number Diff line change 1
1
<!--
2
- /**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
5
- */
2
+ /**
3
+ * Copyright 2011 Adobe
4
+ * All Rights Reserved .
5
+ */
6
6
-->
7
7
< input class ="admin__control-file " type ="file " data-bind ="
8
8
hasFocus: focused,
13
13
id: uid,
14
14
disabled: disabled,
15
15
form: formId
16
- } "
17
- / >
16
+ }, event:{change: setFileValue} "
17
+ >
You can’t perform that action at this time.
0 commit comments