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
?