@@ -13,6 +13,7 @@ export class FileUploaderButton extends Component {
13
13
labelText : PropTypes . string ,
14
14
listFiles : PropTypes . bool ,
15
15
multiple : PropTypes . bool ,
16
+ name : PropTypes . string ,
16
17
onChange : PropTypes . func ,
17
18
onClick : PropTypes . func ,
18
19
role : PropTypes . string ,
@@ -65,6 +66,7 @@ export class FileUploaderButton extends Component {
65
66
tabIndex,
66
67
buttonKind,
67
68
accept,
69
+ name,
68
70
...other
69
71
} = this . props ;
70
72
const classes = classNames ( {
@@ -96,6 +98,7 @@ export class FileUploaderButton extends Component {
96
98
type = "file"
97
99
multiple = { multiple }
98
100
accept = { accept }
101
+ name = { name }
99
102
onChange = { this . handleChange }
100
103
onClick = { evt => {
101
104
evt . target . value = null ;
@@ -171,6 +174,7 @@ export default class FileUploader extends Component {
171
174
labelDescription : PropTypes . string ,
172
175
labelTitle : PropTypes . string ,
173
176
multiple : PropTypes . bool ,
177
+ name : PropTypes . string ,
174
178
onChange : PropTypes . func ,
175
179
onClick : PropTypes . func ,
176
180
className : PropTypes . string ,
@@ -229,6 +233,7 @@ export default class FileUploader extends Component {
229
233
className,
230
234
multiple,
231
235
accept,
236
+ name,
232
237
...other
233
238
} = this . props ;
234
239
@@ -248,6 +253,7 @@ export default class FileUploader extends Component {
248
253
onChange = { this . handleChange }
249
254
disableLabelChanges
250
255
accept = { accept }
256
+ name = { name }
251
257
/>
252
258
< div className = "bx--file-container" >
253
259
{ this . state . filenames . length === 0
0 commit comments