Get file field value | WordPress.org

[ad_1]

Thread Starter
VR Webs

(@net4earning)

thanks for the quick response

i created a function to send that file to some other server thru API call, so i just want to retrieve that file and send it to that server. i used this code

if ($contact_form->id() === $form_id) {
$submission = WPCF7_Submission::get_instance();
if ($submission) {
$posted_data = $submission->get_posted_data();
$files = $submission->uploaded_files();

  • This reply was modified 5 minutes ago by VR Webs. Reason: not relolved

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer