• I would like to copy uploaded file(s) in WP file directory, which is difficult (although not impossible) as the corresponding WPCF7_Submission object item is private.

    The public get_posted_data() method includes the file name(s), but not the path, which changes for each upload (random number in folder name).

    It would be very handy to have the path also availible.

    https://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you want to add own files before sending, you can add your path to file(s) via PHP filter wpcf7_before_send_mail() similar to here, no need to copy files with that…

    Thread Starter babo2015

    (@babo2015)

    Thanks for your reply, but this is not what I am looking for. I’ll try to explain a bit more:

    I have a form made with CF7, where people can upload files. I would like to keep these files in my files directory. The problems are:
    1) CF7 saves the files only temporarily. They are deleted automatically after some minutes.
    2) Each file is stored (temporarily) in a subdirectory with a random number as directory name. So the path changes for every uploaded file. This is why I would like to have the exact upload path in the get_posted_data().

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature Request: Add file upload path to get_posted_data()’ is closed to new replies.