Using file upload retrieving file name

Home Forums Quform WordPress Using file upload retrieving file name

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

    Hi Guys
    Using the file field and redirecting to another script page. I cannot seem to get the uploaded file name when trying to retrieve it.

    The form posts to another page and in the functions php in wordpress io have the following code. Everything works fine and sending the values to the redirect page except for item 16_26 (last item) which is the file name retrieval.

    Can you please tell me where i am going wrong on this item please.


    function mytheme_modify_form_redirect16($url, $form)
    {
    $data = array(
    'forename' => $form->getValue('iphorm_16_1'),
    'surname' => $form->getValue('iphorm_16_2'),
    'contact_email' => $form->getValue('iphorm_16_3'),
    'contact_tel' => $form->getValue('iphorm_16_4'),
    'bus_name' => $form->getValue('iphorm_16_5'),
    'bus_type' => $form->getValue('iphorm_16_15'),
    //'other_type' => $form->getValue('iphorm_2_16'),
    'bus_address' => $form->getValue('iphorm_16_8'),
    'years_trading' => $form->getValue('iphorm_16_19'),
    'web_address' => $form->getValue('iphorm_16_22'),
    'county' => $form->getValue('iphorm_16_24'),
    'intro' => $form->getValue('iphorm_16_25'),
    'intrologo' => $form->getValue('iphorm_16_26'),
    );

    $data = array_map('rawurlencode', $data);

    $url = add_query_arg($data, 'to my script page address');

    return $url;
    }
    add_action('iphorm_success_redirect_url_16', 'mytheme_modify_form_redirect16', 10, 2);

    #13168
    patdundee
    Participant

    Hi Guys

    Any news on this one for me please

    Many thanks

    Patrick

    #13180
    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 3 posts - 1 through 3 (of 3 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