in reply to extension check on upload script doesn't do anything

You can't just invent stuff and expect it to work! The code as posted doesn't compile for a couple of reasons:

I'd clean the code up by doing something like:

my @okTypes = qw(doc docx odt rtf); my %allowedext = map {$_ => 1} @okTypes; if (!$allowedext{lc $extension}) { print "Filetype '$extension' not allowed. File extension must be one + of ", join ', ', @okTypes; exit; }
True laziness is hard work

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.