Author: konstantin.mishin
Date: 2011-01-26 14:04:15 -0500 (Wed, 26 Jan 2011)
New Revision: 21244
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/fileupload.js
Log:
RF-10196
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/fileupload.js
===================================================================
---
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/fileupload.js 2011-01-26
18:42:49 UTC (rev 21243)
+++
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/fileupload.js 2011-01-26
19:04:15 UTC (rev 21244)
@@ -68,7 +68,7 @@
this.id = id;
jQuery.extend(this, options);
if (this.acceptedTypes) {
- this.acceptedTypes = jQuery.trim(this.acceptedTypes).split(/\s*,\s*/);
+ this.acceptedTypes =
jQuery.trim(this.acceptedTypes).toUpperCase().split(/\s*,\s*/);
}
this.element = jQuery(this.attachToDom());
this.form = this.element.parents("form:first");
@@ -212,6 +212,7 @@
},
__accept: function(fileName) {
+ fileName = fileName.toUpperCase();
var result = !this.acceptedTypes;
for (var i = 0; !result && i < this.acceptedTypes.length; i++) {
var extension = this.acceptedTypes[i];
Show replies by date