File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ React.render(<Upload />, container);
67
67
| data| object/function(file) | | other data object to post or a function which returns a data object(a promise object which resolve a data object) |
68
68
| headers| object | {} | http headers to post, available in modern browsers |
69
69
| accept | string | | input accept attribute |
70
+ | capture | string | | input capture attribute |
70
71
| multiple | boolean | false | only support ie10+|
71
72
| onStart | function| | start upload file |
72
73
| onError| function| | error callback |
Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ class AjaxUploader extends Component<UploadProps> {
269
269
style,
270
270
multiple,
271
271
accept,
272
+ capture,
272
273
children,
273
274
directory,
274
275
openFileDialogOnClick,
@@ -308,6 +309,7 @@ class AjaxUploader extends Component<UploadProps> {
308
309
key = { this . state . uid }
309
310
style = { { display : 'none' } }
310
311
accept = { accept }
312
+ capture = { capture }
311
313
{ ...dirProps }
312
314
multiple = { multiple }
313
315
onChange = { this . onChange }
You can’t perform that action at this time.
0 commit comments