The receiving script actually reads:

<?php print_r($_FILES['files']); ?>

I have checked for spelling errors ;-)

2009/2/19 Simon <sib...@gmail.com>

> Hello,
>
> I am desperately trying to implement the Multiple File Upload Plugin
> into a script. However, I seem to be having no end of problems simply
> getting it to pass the files through.
>
> I have set up a simple two-page script. The front-end is simply a form
> with the jQuery plugin, and the receiving script all I try to do is
> print_r the files array, yet it is empty. Nothing is being passed.
>
> Any ideas on why this is the case? If it works, this is the code I use
> on the form page (yes I do have the jQuery and the plugin files also
> linked in the head of the document):
>
> <form id="requestform" action="uploadres.php" method="post">
> <label for="files">Attach files:</label>
>
> <input id="fileattach" name="files[]" class="multi" maxlength="5"
> type="file"><span id="files_wrap_list"></span>
>
> <br /><input type="submit" id="submitrequest" class="submit"
> value="Submit" />
> </form>
>
> And on the receiving page I try this:
>
> <?php print_r($_FILES['file']); ?>
>
> Which results in an empty array. Am I overlooking something very
> simple here? Its often the case!
>
> Many thanks in advance for any help you can provide with this!
>
> Kind regards,
> Simon

Reply via email to