Upload file to wordpress folder before send email
-
I am trying to save uploaded files before sending the email.
Basically the same as this question (https://www.ads-software.com/support/topic/plugin-contact-form-7-upload-file-to-wordpress-folder-before-send-email?replies=9) from 4 years ago.
However the answer given no longer seems to work.
I am trying to do this in the wpcf7_before_send_mail hook:
$cf7->uploaded_files no longer works
And with something like this: $_FILES[‘file-869’] , I can see the file temp name but it has already been deleted from the /var/tmp folder before I can grab it and move it somewhere else.
Does anyone know how to do this?
Thanks,
Scott
- The topic ‘Upload file to wordpress folder before send email’ is closed to new replies.