Skip to content

Commit ea42e15

Browse files
committed
Fix typo in setting of accept option
If `options.accept` was set by user, it was overridden by the value of `options.multiple`.
1 parent 34751e8 commit ea42e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.FileReader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
inputsCount++;
4646
}
4747
options.multiple = !!(options.multiple === null ? input.attr('multiple') : options.multiple);
48-
options.accept = options.accept === null ? input.attr('accept') : options.multiple;
48+
options.accept = options.accept === null ? input.attr('accept') : options.accept;
4949

5050
FileAPIProxy.inputs[id] = input;
5151
FileAPIProxy.swfObject.add(id, options.multiple, options.accept, options.label, options.extensions);
@@ -323,4 +323,4 @@
323323
}
324324
};
325325

326-
})( jQuery );
326+
})( jQuery );

0 commit comments

Comments
 (0)