I hope you know how to upload exactly one file. Something like this:
<form method="post" .... >
<input name="image1" type="file"> Image #1</input>
If you add two more
elements in the middle, you will allow the user to upload exactly three. This is the simplest method you can use.