Multiple file uploads

Home Forums Quform WordPress Multiple file uploads

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

    Hi Guys

    If you have a file upload that allows more than one file (Lets say 5). How do you retrieve all of the individual file names please.

    Currently for a single file i simply use

    
    $form->getValue('iphorm_x_xx');
    

    Many thanks
    Patrick

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

    Ignore the code above I entered the wrong one but still need to know how to retrieve all file names from multiple file upload 🙂

    #17773
    patdundee
    Participant

    Cancel this one I have answered my own question 🙂

    It comes through as an array


    $intrologo = $form->getValue('iphorm_x_xx');
    $intrologo1 = $intrologo[0]['text'];
    $intrologo2 = $intrologo[1]['text'];
    $intrologo3 = $intrologo[2]['text'];
    $intrologo4 = $intrologo[3]['text'];
    $intrologo5 = $intrologo[4]['text'];

    #17802
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 4 posts - 1 through 4 (of 4 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