Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Can not get "name" form attribute of uploaded file

I have a simple HTML form like this:

<input type="file" name="hand">
<input type="file" name="foot">
<input type="file" name="head">

By using doc example:

        if ($this->request->hasFiles() == true) {
            // Print the real file names and sizes
            foreach ($this->request->getUploadedFiles() as $file) {
                    echo $file->getName();
                    echo $file->getSize();

How can I tell which image is hand, foot, head ?