in reply to Re: CGI.pm file upload freaking me out
in thread CGI.pm file upload freaking me out
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: CGI.pm file upload freaking me out
by chipmunk (Parson) on Jan 07, 2001 at 21:21 UTC |