Take a second look at the regex he used.
if ($file_name !~ /\.jpe?g$/)
The way he's using it covers both .jpg as well as .jpeg extensions in case the user tries to upload with either extension. However Trimbach, you might consider adding a "?" after the "g" as well, because as rare as it really is, .jpe is also an acceptable extension used with jpegs.
ryddler
In reply to Re: Re: CGI.pm file upload freaking me out
by ryddler
in thread CGI.pm file upload freaking me out
by Trimbach
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |