http://qs321.pair.com?node_id=192126

Q&A > CGI programming > How to submit a file to a web server via a HTML form? - Answer contributed by merlyn

Read the 'CREATING A FILE UPLOAD FIELD' section of the CGI module doc.