look at the documentation for the CGI module. it has several clear examples of how to do this.
anders pearson
In reply to Re: Uploading Files by thraxil in thread Uploading Files by Kiko