If you're using CGI.pm, then take a few minutes to read up on the
documentation and specifically, read up on the section labeled
Using the File Upload Feature. There is even an
example there of how to do it, accompanied by the
source code.
If you're still stuck after reading that chapter, come back and post some sample code or at the very least some evidence of your efforts, and we'll be happy to help further.
- wil