I have some more issues with the Uploader class (which I stumbled into when I was writing Attachments)... I can't remember them right now, but I'll have a look at the class.
Ok, I couldn't find the stuff I wanted fixed... I guess I found another way to have Attachments work
Anyway.. I've added the following line: if (!in_array(strtoupper($FileExtension), explode(',', strtoupper(join(',', $this->AllowedFileTypes[$FileType]))))) {
This way you have a "real" case-insensitive check, as the AllowedFileTypes doesn't have to be in uppercase either. I use the join/explode method, as it's the fastest way to uppercase an array: http://lixlpixel.org/php-benchmarks/array-values-to-uppercase/#explode-/-join