WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
File Uploads + Email attachments (4 posts)

  1. mrjysta
    Member
    Posted 3 years ago #

    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/
    Cheers,

    J

  2. mrjysta
    Member
    Posted 3 years ago #

    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!

    Thanx

  3. Gaudi111
    Member
    Posted 3 years ago #

    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.

    Thanks

  4. mrjysta
    Member
    Posted 3 years ago #

    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]
    </IfModule>

    # END WordPress

    AddHandler php5-script .php
    '
    Also check php5 is set in cPanel/Plesk when logged into your host.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic