Diego,
This is an awesome script. And I feel ridiculous for asking this, but let me see if I can get my question across here. I'm working on a Mailing List Manager that will allow users to upload a maximum of 5 attachments.
Scenario:
I've got the multi-upload input field looking like this:
<input type="file" class="multi" name="file[]" maxlength="5"/>
In my 'jqueryMultiFile.js' file, I've got my 'namePattern' set to:
namePattern: '$name$i'
(which means for every iteration of the input box above, the name should increment by the value of $i, correct?)
So, in the next step, I simply want to just echo out to the screen the name values for each file I just selected to upload.
<?php
for ($i=1; $i<=5; $i++) {
echo 'attachment '.$i.':'.$_FILES['file']['name'][$i].'<br/>';
}
?>
However, the only thing that prints to the screen is:
attachment 1:
attachment 2:
attachment 3:
attachment 4:
attachment 5:
No name values.
Can you (or anyone really) provide some insight here? I've looked in the PHP manual for multi-file upload support, and am virtually copying what they suggest, but obviously am missing something.
Thanks so much for your time!