wpcf7_posted_data filter has no data for file fields
-
Hello,
I am using the wpcf7_posted_data filter in functions.php to obtain form submission data. The issue I am facing is that when a file is uploaded to a field such as:
[file Photo-1 filetypes:gif|png|jpg|jpeg|mp4]
the data is empty (i.e. the string ”) when the wpcf7_posted_data filter is run. This is not the case for text, email and textarea fields; they all have the correct data.
Also, the file that is uploaded does appear as an attachment in the email that is sent to the form recipient. It only shows as empty in the wpcf7_posted_data array.
Why could this be?
Thanks
The topic ‘wpcf7_posted_data filter has no data for file fields’ is closed to new replies.