Home › Forums › Quform WordPress › Using file upload retrieving file name
- This topic has 2 replies, 2 voices, and was last updated 10 years, 8 months ago by
Ally.
- AuthorPosts
- November 23, 2014 at 1:02 pm #13163
patdundee
ParticipantHi 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);
November 24, 2014 at 9:32 am #13168patdundee
ParticipantHi Guys
Any news on this one for me please
Many thanks
Patrick
November 24, 2014 at 4:08 pm #13180Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.