Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

File attachment not saving to wpcf7_uploads folder

$
0
0

Replies: 0

I have set my contact form to skip_mail: on because I am just using the form to send the values to a third party erp using the wpcf7_mail_sent hook in functions.php. Everything is working but not the file attachment. file_get_contents throws an error because the attached file is not saved in wpcf7_uploads or anywhere in my local server.

i have read this: https://wordpress.org/support/topic/file-attachments-not-working-in-contact-form-7/ but to no avail – different issue.

I am using this to get the values:

$submission = WPCF7_Submission::get_instance();
$posted_data = $submission->get_posted_data();


Viewing all articles
Browse latest Browse all 59525

Trending Articles