long time reader, with a small question on my hands.
I have been working on adding multiple file upload support to a CakePHP 2.x project, I've implemented as such in a view here;
<label>Supporting Document(s):</label>
<?php
echo $this->Form->file('files.', ['type' => 'file', 'multiple' => ($allowMultipleSetting ? 'multiple' : false)]);
?>
But I'm a little confused, what is the purpose of the '.' in 'files.' here? I can see what it can do, it gives me an array of file objects in my controller when I do a $this->data['files'], which is desired, and without it, I just have the one file object, even with multiple set to true from option parameters passed to this view.
Does anyone know what 'magic' or Cake 'thing' happens here so that, when a dot/full stop is added to the end of the key name, Cake shows all the images selected?
Thanks!