Forms with attached files

How do I create a section in my contact form where users can attach zip or word files?

Can anyone talk me through it or point me in direction of a tutorial.

At the moment I’m sending the data to a copy of Formail that my webhosts provide through a Perl path.