Title: Save file on server
Last modified: June 19, 2019

---

# Save file on server

 *  [ionian](https://wordpress.org/support/users/ionian/)
 * (@ionian)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/save-file-on-server/)
 * Hi,
    I have tried but cannot get a file (pdf, docx) to save on the server when
   the form is submitted.
 * I have tried using the wp_handle_upload but this fails giving error: “specified
   file failed upload test”.
 * I was wondering if anyone knows a way to save and uploaded file from the CF7 
   form and the path to that file once saved.
 * Thanks for any help you can give.
 * Ian

Viewing 1 replies (of 1 total)

 *  Thread Starter [ionian](https://wordpress.org/support/users/ionian/)
 * (@ionian)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/save-file-on-server/#post-11656569)
 * Hi and thanks.
    So if I use the hook wpcf7_before_send_mail I can grab a copy
   from there? Or is there a better way?
 * I’d rather not use a plugin for this.
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Save file on server’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [save file](https://wordpress.org/support/topic-tag/save-file/)
 * [server](https://wordpress.org/support/topic-tag/server/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)

 * 1 reply
 * 0 participants
 * Last reply from: [ionian](https://wordpress.org/support/users/ionian/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/save-file-on-server/#post-11656569)
 * Status: not resolved