flash file uploader file names

Home Forums Quform WordPress flash file uploader file names

This topic is: resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17775
    patdundee
    Participant

    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

    • This topic was modified 8 years, 4 months ago by patdundee.
    #17778
    patdundee
    Participant

    Found solution 🙂


    $myfiles= $form->getValue('iphorm_x_x');
    foreach ($myfiles as $file) {
    $name=$file['text'];
    }

    P

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy