<form action="YOUR_SERVER_SIDE_SCRIPT_PATH" enctype="multipart/form-data" method="post">
CHANGE THE ACTION PATH TO YOUR SERVER SIDE SCRIPT PATH TO SEE THE PARAMETERS SENT.
i.e. PHP
<pre>
<?php
print_r($_FILES);
?>
</pre>
usually, when several files need to be uploaded, you have to do one of the followings.
1. is just painful. 2. is okay but the number of the file elements is fixed, and so it still has a problem with many files to upload.
So here's my multi-file-uploader. It can hold as many files as you wish and can upload them all at a time.
The trick is hiding the file input element in a list and naming the element when attaching. The hidden file element will have a label with its file path to notify the addition and to be removed when decided not to send.