Title: Snerfus's Replies | WordPress.org

---

# Snerfus

  [  ](https://wordpress.org/support/users/snerfus/)

 *   [Profile](https://wordpress.org/support/users/snerfus/)
 *   [Topics Started](https://wordpress.org/support/users/snerfus/topics/)
 *   [Replies Created](https://wordpress.org/support/users/snerfus/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/snerfus/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/snerfus/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/snerfus/engagements/)
 *   [Favorites](https://wordpress.org/support/users/snerfus/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] wpcf7_before_send_mail does not pass posted_data](https://wordpress.org/support/topic/wpcf7_before_send_mail-does-not-pass-posted_data/)
 *  Thread Starter [Snerfus](https://wordpress.org/support/users/snerfus/)
 * (@snerfus)
 * [12 years ago](https://wordpress.org/support/topic/wpcf7_before_send_mail-does-not-pass-posted_data/#post-5125158)
 * ericsyd, no, I do not, I had to look through the source code to find that new
   value.
 * Karthi, the $wpcf7 variable is no longer accessible, you need to do it as above(
   $submission = WPCF7_Submission::get_instance();) etc,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Convert PDF File](https://wordpress.org/support/topic/convert-pdf-file/)
 *  [Snerfus](https://wordpress.org/support/users/snerfus/)
 * (@snerfus)
 * [12 years ago](https://wordpress.org/support/topic/convert-pdf-file/#post-4677760)
 * $cf7->uploaded_files no longer accesses the files, in CF7 3.9
 * CF7 has changed the way to access post data and files, in 3.9
 * [code]
    function my_wpcf7_before_send_mail($cf7) { $submission = WPCF7_Submission::
   get_instance(); $files = $submission->uploaded_files(); [/code] And $files will
   contain the array of the files.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Managing file attachment w/Contact Form 7](https://wordpress.org/support/topic/managing-file-attachment-wcontact-form-7/)
 *  [Snerfus](https://wordpress.org/support/users/snerfus/)
 * (@snerfus)
 * [12 years ago](https://wordpress.org/support/topic/managing-file-attachment-wcontact-form-7/#post-5128353)
 * This post deals with the changes, and the hook you need to use.
    Bottom post 
   shows how to access the files.
 * [http://wordpress.org/support/topic/wpcf7_before_send_mail-does-not-pass-posted_data?replies=4](http://wordpress.org/support/topic/wpcf7_before_send_mail-does-not-pass-posted_data?replies=4)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] wpcf7_before_send_mail does not pass posted_data](https://wordpress.org/support/topic/wpcf7_before_send_mail-does-not-pass-posted_data/)
 *  Thread Starter [Snerfus](https://wordpress.org/support/users/snerfus/)
 * (@snerfus)
 * [12 years ago](https://wordpress.org/support/topic/wpcf7_before_send_mail-does-not-pass-posted_data/#post-5125117)
 * And then $submission->uploaded_files() will get all the attached files.
    Such
   a big change.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Can't get posted_data](https://wordpress.org/support/topic/cant-get-posted_data/)
 *  [Snerfus](https://wordpress.org/support/users/snerfus/)
 * (@snerfus)
 * [12 years ago](https://wordpress.org/support/topic/cant-get-posted_data/#post-5103582)
 * Looks like it is $submission->uploaded_files()
    What a huge change for 3.9, would
   have been nice if this was properly documented, its a huge change.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Can't get posted_data](https://wordpress.org/support/topic/cant-get-posted_data/)
 *  [Snerfus](https://wordpress.org/support/users/snerfus/)
 * (@snerfus)
 * [12 years ago](https://wordpress.org/support/topic/cant-get-posted_data/#post-5103580)
 * Ok, that solved my issue for the posted_data, but it does not work for uploaded_files(
   trying get_uploaded_files(), and it crashes)
    $submission->uploaded_files[‘file-
   787’], also does not work (crash)
 * Thanks

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