File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,16 @@ const Files = ({
1111 clickable,
1212 dragActiveClassName,
1313 dragActiveStyle,
14- onChange,
15- onDragEnter,
16- onDragLeave,
17- onError,
14+ inputProps,
1815 multiple,
1916 maxFiles,
2017 maxFileSize,
2118 minFileSize,
2219 name,
20+ onChange,
21+ onDragEnter,
22+ onDragLeave,
23+ onError,
2324 style
2425} ) => {
2526 const idCounter = useRef ( 1 )
@@ -161,6 +162,7 @@ const Files = ({
161162 return (
162163 < >
163164 < input
165+ { ...inputProps }
164166 ref = { inputElement }
165167 type = "file"
166168 accept = { accepts ? accepts . join ( ) : '' }
@@ -195,6 +197,7 @@ Files.propTypes = {
195197 className : PropTypes . string ,
196198 clickable : PropTypes . bool ,
197199 dragActiveClassName : PropTypes . string ,
200+ inputProps : PropTypes . object ,
198201 multiple : PropTypes . bool ,
199202 maxFiles : PropTypes . number ,
200203 maxFileSize : PropTypes . number ,
@@ -212,6 +215,7 @@ Files.defaultProps = {
212215 className : undefined ,
213216 clickable : true ,
214217 dragActiveClassName : undefined ,
218+ inputProps : { } ,
215219 multiple : true ,
216220 maxFiles : Infinity ,
217221 maxFileSize : Infinity ,
You can’t perform that action at this time.
0 commit comments