Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] File Uploads Email attachments

  • Guys,

    Contact form seems great but having a few issues with file uploads.
    The file attachments are set to download to uploads > wpcf7_uploads which was generated automatically by the plug-in. permissions are 755 for uploads and 777 for wpcf7_uploads

    I have set my form up with:
    <p>File Upload: [file file-upload]</p>

    And Mail with:
    File attachments: [file-upload]

    I notice that when I test the form with a small JPG 50kb file the form submit works. I get an Email with the submission but NO ATTACHMENT. I check the wpcf7_uploads folder and the JPG file is in there. BUT if I do another submission with a different JPG file it deletes the previous JPG!

    So in summary the file attachments won’t send in the email and only one file attachment is stored in the uploads folder at a time.

    Hope someone can point in the right direction for sorting this out/


Viewing 3 replies - 1 through 3 (of 3 total)
  • Ok forcing php5 seems to have fixed this!
    in .htaccess make sure the following is included:

    AddHandler php5-script .php

    However I have noticed that the plug-in does not store the file permanently in the wpcf7_uploads folder, they are deleted once the email is sent.

    Possible feature request then for next version??
    And with this also the ability to view form submissions in wp-admin??

    If someone has done a fork for this pls let me know!


    In which .htaccess should I add the line:
    AddHandler php5-script .php

    I tried in root and then all the pages are “downloaded” instead of showed.


    Yes I added this to the root folder under the WordPress Rewrites/ see below:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    AddHandler php5-script .php

    Also check php5 is set in cPanel/Plesk when logged into your host.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Contact Form 7] File Uploads Email attachments’ is closed to new replies.