Retrieve the attachment file with wpcf7_before_send_mail
-
I have managed to retrieve all info from the submitted form before it has been sent out by using the wpcf7_before_send_mail but i can not seem to get a copy of the attached image which is stored temporarily i believe. I can get the file name example bulb.png but that is all.
here is a bit of code:
$ContactFormData = WPCF7_Submission::get_instance()->get_posted_data();
$file = htmlentities($ContactFormData[‘file-411’], ENT_QUOTES);
what am i missing here as no one seems to know how to capture the image before it is deleted from the tmp folder
- The topic ‘Retrieve the attachment file with wpcf7_before_send_mail’ is closed to new replies.