If you use Dreamweaver to insert the file form field, the encoding type will be changed automatically.
Insert -> Form -> File Field.
Or you can change the encoding type manually in the property inspector. Select the form tag, then change the encoding type dropdown list in the property inspector to multipart/form-data