File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -848,7 +848,7 @@ if (typeof brutusin === "undefined") {
848
848
return clone ;
849
849
} else if ( object === "" ) {
850
850
return null ;
851
- } else if ( object instanceof Object ) {
851
+ } else if ( object instanceof Object && ! ( object instanceof File ) ) {
852
852
var clone = new Object ( ) ;
853
853
var nonEmpty = false ;
854
854
for ( var prop in object ) {
@@ -1251,6 +1251,16 @@ if (typeof brutusin === "undefined") {
1251
1251
}
1252
1252
1253
1253
function getValue ( schema , input ) {
1254
+ if ( schema . $id === "$.Document" ) {
1255
+ input . type = 'file' ;
1256
+ input . getValue = function ( ) {
1257
+ if ( input . value && input . files . length ) {
1258
+ return input . files [ 0 ] ;
1259
+ } else {
1260
+ return null ;
1261
+ }
1262
+ } ;
1263
+ }
1254
1264
if ( typeof input . getValue === "function" ) {
1255
1265
return input . getValue ( ) ;
1256
1266
}
You can’t perform that action at this time.
0 commit comments