Sending multiple file for file we have to use enctype="multipart/form-data"
and to send multiple file use multiple="multiple"
in input tag
<form action="upload" method="post" enctype="multipart/form-data">
<input type="file" name="fileattachments" multiple="multiple"/>
<input type="submit" />
</form>