Actually CGI does not name the file what it
is named in the filename. (At least it shouldn't be, and
doesn't do it instead.) Instead what it does is returns a
glob. If you use the glob as a string, you will see the
name of the file that they are trying to upload. If you
use it as a filehandle, you will be reading from the file.
And yes, I was confused for quite a while about how it
worked. :-)