Home › Forums › Quform WordPress › flash file uploader file names
Hi Guys Still having issues with this one I am using the flash uploader to allow up to 5 files. I am trying to retrieve the file names but i only ever get the first one. All the files upload without issue but I never get all the names.
Here is my code
$myfiles= $form->getValue('iphorm_x_x'); $filesA = $myfiles[0]['text']; $filesB = $myfiles[1]['text']; $filesC = $myfiles[2]['text']; $filesD = $myfiles[3]['text']; $filesE = $myfiles[4]['text'];
I only ever get the first file name. Please can you tell me where i am going wrong.
Many thanks Patrick
Found solution 🙂
$myfiles= $form->getValue('iphorm_x_x'); foreach ($myfiles as $file) { $name=$file['text']; }
P