diff --git a/include/class.forms.php b/include/class.forms.php index 4c0da0524f61e02e262b63971877a54adb353832..f21f5f7974f6a64c6883cdeffbd1651e98bde261 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -1587,6 +1587,10 @@ class FileUploadField extends FormField { else { if ($ext[0] != '.') $ext = '.' . $ext; + + // Ensure that the extension is lower-cased for comparison latr + $ext = strtolower($ext); + // Add this to the MIME types list so it can be exported to // the @accept attribute if (!isset($extensions[$ext]))