Title: attachments &amp; sending email
Last modified: April 6, 2021

---

# attachments & sending email

 *  [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * (@webwiza2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/)
 * We need for visitors to have the option to attach photos when submitting a road
   complaint. We have followed the instructions in the guide, where we are using
   the form tag <label> Attachments – 2MB Limit (optional) [file your-file filetypes:
   pdf|png|jpeg|jpg limit:2mb]</label> on the form and the following mail tag [your-
   file][your-another-file] in the Mail > File attachments filed as shown in this
   article: [https://contactform7.com/file-uploading-and-attachment/](https://contactform7.com/file-uploading-and-attachment/)
 * When the attachment was loading in the form, with these same settings not an 
   hour prior to submitting this to the forum, the email would not send with the
   attachments. No it wont load to the form nor will it send the email.
 * We have added the a folder named wpcf7_uploads directory to the wp-content/uploads/
   directory and have ensure that the permissions for the entire path are writable.
   We have added the following line to our wp-config.php file: define( ‘WPCF7_UPLOADS_TMP_DIR’,‘/
   wp-content/uploads’ );
 * I’m not sure what I am missing. Any feedback or recommendations?
    -  This topic was modified 5 years, 2 months ago by [webwiza2](https://wordpress.org/support/users/webwiza2/).
    -  This topic was modified 5 years, 2 months ago by [webwiza2](https://wordpress.org/support/users/webwiza2/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fattachments-sending-email%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * (@webwiza2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14284789)
 * If I remove the label tags and field title surrounding the attachment tag, it
   will show the file on the form after I attach the file to the form, but when 
   I submit it gives this message, “There was an unknown error uploading the file.”
   If i remove the attachment line all together so that visitors do not have the
   option to attach photos, it sends the email without issue. But I need for them
   to be able to upload photos, so any advise leading me in the right direction 
   would be greatly appreciated.
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14285890)
 * Where on the site do you have the form having the issue?
 *  Thread Starter [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * (@webwiza2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14289028)
 * link on the right sidebar titled SUBMIT ROAD COMPLAINT
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14291271)
 * What other plugins and theme do you use on the site?
 *  Thread Starter [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * (@webwiza2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14293317)
 * **ACTIVE PLUGINS: **
    Accordion Shortcodes Auto iFrame Contact Form 7 Disable
   Comments Easy Custom Sidebars Fast Secure Contact Form File Away Flexible Modals
   Image Widget Open External Links in a New Window ReCaptcha v2 for Contact Form
   7 TablePress Tabs Responsive Tabs Shortcode And Widgets Widget Content Blocks
   Widgetize pages Light WP Private Content Plus
 * **THEME**
    Dandelion
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14293624)
 * Try switching to the default theme and deactivating all plugins excluding Contact
   Form 7.
 * [Why you are advised to deactivate plugins and switch to the default theme.](https://contactform7.com/2019/12/02/why-you-are-advised-to-deactivate-plugins-and-switch-to-the-default-theme/)
 *  Thread Starter [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * (@webwiza2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14293636)
 * Okay, i’ll get back to you with the results as soon as i can do that. I have 
   to work now from 1000AM-0100PM EST. So it will be after 1PM EST today. Thank 
   you
 *  Thread Starter [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * (@webwiza2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14293700)
 * It will be about 5PM your time before I’m off work. Sorry for the delay.
 *  Thread Starter [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * (@webwiza2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14294880)
 * I disabled all the plugins that the sidebar and links were not relying on, should
   this form be displaying on a page? Because I have it loading as a modal. That
   modal is then loaded into a table which is loaded onto the sidebar. Should I 
   find a way to elevate all the middle pieces (the modal and table plugins etc)?
 *  Thread Starter [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * (@webwiza2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14294942)
 * okay, i took it out of the table and out of the modal so that it loads on the
   sidebar out right upon loading the site and i still get the same issue
 *  Thread Starter [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * (@webwiza2)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14371842)
 * Is this the extent of your support – drop a one liner and you’re gone without
   resolution??? its been over 2 weeks . . .

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

The topic ‘attachments & sending email’ 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/)

 * 11 replies
 * 2 participants
 * Last reply from: [webwiza2](https://wordpress.org/support/users/webwiza2/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/attachments-sending-email/#post-14371842)
 * Status: not resolved