Contact Form 7 1.9.5.1

I have recently released Contact Form 7 1.9.5.1. This update includes several security fixes, so upgrading quickly is highly recommended.

Download | Plugin Homepage | FAQ | Support Forum

Default Restrictions for File Type and File Size

This change is related to the file uploading & attachment feature. If you don’t know the feature, please check this page first.

File uploading and attachment with Contact Form 7

This version applies default restrictions for file type and file size when you do not set the filetypes and limit (file size) options explicitly. Default acceptable file types (extensions) are: jpg, jpeg, png, gif, pdf, doc, docx, ppt, pptx, odt, avi, ogg, m4a, mov, mp3, mp4, mpg, wav, and wmv. Default acceptable file size is 1 MB (1048576 bytes).

If you need settings other than the default, set options for file tag explicitly like this:

[file your-file limit:524288 filetypes:psd|ai]

Change Log

  • Default restrictions for file type and file size (See above.)
  • Changing file extensions when you upload script files
  • Bug fix: when you set ‘file*’ type for file uploading tag, the form doesn’t have the enctype=”multipart/form-data” attribute right
  • Farsi (Persian) translation updated by Mohammad Musavi
  • Korean translation updated by Jong-In Kim
  • German translation updated by Ivan Graf


(以下、日本語)

Contact Form 7 1.9.5.1 をリリースしました。これにはセキュリティ関連の修正が含まれているので早めのアップグレードをお勧めします。

ファイルタイプとファイルサイズのデフォルト制限

この変更はファイルアップロード + メール添付機能に関する内容です。その機能についてまだ知らないなら、先にこちらのページを見てください。

File uploading and attachment with Contact Form 7

filetypes (ファイルタイプ) と limit (ファイルサイズ) のオプションが明示的に設定されてない場合にデフォルトの制限が適用されるよう変更されました。デフォルトで受け入れられるファイルタイプ(拡張子) は jpg, jpeg, png, gif, pdf, doc, docx, ppt, pptx, odt, avi, ogg, m4a, mov, mp3, mp4, mpg, wav, wmv です。デフォルトのファイルサイズ制限は 1 MB (1048576 バイト) です。

デフォルトの制限では困る場合は以下のように file タグにオプションを明示してください:

[file your-file limit:524288 filetypes:psd|ai]

37 thoughts on “Contact Form 7 1.9.5.1

  1. thanks for your work on this well thought out, wonderful plugin- does exactly as one would want.

    is it possible to load the:

    only on pages where it is required- i.e. where Contact Form exists. Right now it loads on every single page of my blog, even when it is not used / called for.

    Thanks!

    – C.

  2. Pingback: Contact Form 7 Security Vulnerability - WordPress Tavern Forum

  3. When i update to current version, i got some error, how could i fix it ?

    Warning: opendir(/home/leadermoto/domains/leadermotorsports.org.my/public_html/wp-content/uploads/wpcf7_uploads/) [function.opendir]: failed to open dir: Permission denied in /home/leadermoto/domains/leadermotorsports.org.my/public_html/wp-content/plugins/contact-form-7/wp-contact-form-7.php on line 1562

  4. Is there any chance you could add support for wp-recaptcha? I don’t want to have two captcha systems installed on my blog, and I’m using wp-recaptcha for blog comments. Thanks.

  5. Hi Miyoshi,

    Same error that happened to TyperX also happened to me. I tried to log-in, and more error at the log-in page.

    Warning: opendir(/home/boong/public_html/wp/wp-content/uploads/wpcf7_uploads/) [function.opendir]: failed to open dir: Permission denied in /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php on line 1562

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-login.php on line 255

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-login.php on line 267

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-login.php on line 269

    I did log-in anyway, and these lines appear, with nothing else, no Dashboard, no nothing!

    Warning: opendir(/home/boong/public_html/wp/wp-content/uploads/wpcf7_uploads/) [function.opendir]: failed to open dir: Permission denied in /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php on line 1562

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-login.php on line 255

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-login.php on line 267

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-login.php on line 269

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-includes/pluggable.php on line 658

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-includes/pluggable.php on line 659

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-includes/pluggable.php on line 660

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-includes/pluggable.php on line 662

    Warning: Cannot modify header information – headers already sent by (output started at /home/boong/public_html/wp/wp-content/plugins/contact-form-7/wp-contact-form-7.php:1562) in /home/boong/public_html/wp/wp-includes/pluggable.php on line 850

    I have to delete the contact-form-7 folder via FTP in order to get back to the Dashboard.

  6. Pingback: Contact Form 7 Now Safe To Use

  7. I still get the error using the development version.

    “Warning: opendir(/home/oriental/domains/mastersoon.com/public_html/wp-content/uploads/wpcf7_uploads/) [function.opendir]: failed to open dir: Permission denied in /home/oriental/domains/mastersoon.com/public_html/wp-content/plugins/contact-form-7/wp-contact-form-7.php on line 1562″

  8. I have to manually change the chmod of the wpcf7_uploads to 777 and the error doesn’t show after that. Is that a “safe” solution to the issue?

  9. I really enjoy your plugin. The most recent update is working well for me except that when I send an email to test it, it send it but it doesn’t ever say it has sent it. The little spinner just keeps spinning and it never resolves. Once you exit the page it stops. Anyway to get it to give me the your message has been sent notice?

  10. Melvin, 600 (owner can read + write) is enough, probabry. Or, delete the directory manually once, so that the plugin will recreate it automatically.

  11. Pingback: WordPress Plugin Releases for 04/27 | Weblog Tools Collection

  12. Thanks, the plugin works very well for me.
    Except for after I activated it, my website doesn’t load as it should be.
    There might have some clashes between my theme & your plugin.
    How should I fix it?
    Thanks.

  13. Sorry, I have tried to open my website through IE & it works perfectly there.
    So the problem now is that your plugin will only have clashes with my theme if I open my website through Firefox.
    What can I do now?
    Thanks.

  14. For the next version. Could you add the .js file into the footer instead of in the header? Javascript files on header stops the load of the page until the .js file is completely downloaded.

    I made the changes on the code, adding:

    add_action(‘wp_footer’, ‘wp_footer_cf7′);

    function wp_footer_cf7() {
    $javascript_url2 = WPCF7_PLUGIN_URL . ‘/contact-form-7.js';
    echo ”;
    }

    and removing

    <script type=’text/javascript’ src=”>

  15. I’d like to add my voice to the many people asking for reCAPTCHA support :) reCAPTCHA is becoming the most popular and trusted solution on many major websites and the API is pretty easy to use. I just don’t know how to write WP plugins, or I would try to integrate it myself. :(

  16. Hi, I hope you can resolve this issue for me.

    This is what I have set for the upload in Contact Form 7

    [file file-8 limit:10000000 filetypes:jpg]

    But, in the email (which does arrive), there is no attachment if the file is greater than 2.0mb

    I have done a lot of tests, everything up to 2.0mb sends just fine and anything after ie. 2.1mb etc does not come through

    Any Ideas?

  17. Hi, thanks for the excellent plugin. I’m successfully using it on a client side and it helped me a lot. Unfortunately, I’m struggling with one big challenge which seems to come either from the plugin or from WordPress itself: it should upload/mails size up to 20MB. However, it only works up to about 11MB (or 3 Minutes max. time); I had long discussions with my ISP – they checked their logfile, there is no problem on the server side, the limits are correctly set in the .htaccess and in your plugin. Any ideas? I’m quite desperate as I have no idea where to look for and my client is complaining :-(
    Thanks.

  18. Hi Guys,

    It’s really a fun working with this plugin. I loved it when I first downloaded and saw the features. But I was so frustrated when I tried each and every hook people posted here and nothing worked for me as far file attachments.

    I kept getting error “Failed to upload file” even wp-content/upload folder had full permissions (777). I think same thing is happening with you guys. I tried to verify if there is really a problem with my hosting account, I created a new post and tried to upload an image. Since image had to go into “uploads” folder and this is the same place for contact form 7 keeps its things, so in theory, I should receive the same error of files being not uploaded (incase permissions are the problem).

    Will you imagine, SAME happened, word-press didnt allow me upload ANY file or pictures and kept saying “Failed to upload file”. A little investigation gave me the solution.

    The solution is that you MUST have write permissions for “uploads” folder. But if you are on linux based hosting, you SHOULD have “773” permissions for your public_html/www folders as well. So first login to your hosting account or using any ftp client, set permissions for public_html and www folder to “773” then have “777” permissions for “uploads” folder.

    You got it worked man!!! just see the solution in action live at http://www.bnbuzz.com (go to contact page).

    BTW: its a great plugin! Two thumbs up dude who wrote this up…

  19. はじめまして。大変使いやすいプラグインをご提供くださってありがとうございます。以下、2点お尋ねします。

    (1)E-mailアドレスの入力の際、確認の為に2つ同じアドレスを入力してもらうようにしたいのですが、その際に内部で入力された2つのEmailアドレスを比較してチェックすることは可能でしょうか。

    (2)送信する前に送信内容に間違いがないかどうか入力者に確認をさせる為の画面を表示させることは可能でしょうか。

    (もし、既出の質問でしたらすみません。)

  20. himajin@sapporo さん、そのふたつの機能については、Contact Form 7 ではサポートしておりません。たまにほかの方からも要望をいただくことはありますが、実際上必要のない機能と考えています。(たとえば、こういったデータがあります。http://japan.cnet.com/marketing/story/0,3800080523,20384646,00.htm )

  21. Love the plug-in! But there’s one problem…

    Whenever there is a validation error, the little helper-bubbles (e.g. “Please enter a valid email address”) pop up with white text on a white background, so it is not possible to read them.

    Is there any way of changing these colors? Here is the form:

    http://templescene.com/?page_id=272

    Thanks!

  22. Hello.
    I would like to make a multiple page form. Is this possible using Contact Form 7?
    Thanks so much for your plug-in! I recommend it to others often.

  23. I’ve added the CAPTCHA tag to my contact form and I’ve confirmed that both the php and png files are being written to the uploads directory. The png, however, is all white so no image is showing up. I’ve tried adding different foreground and background colors to the tag, but to no avail. I’m using the theme Arclite. Could it be a style issue?

    I’m getting the following error message in the log:

    File does not exist: /home/virtual/site2/fst/var/www/html/wp-includes, referer: http://longbeachrowing.org/dev/?page_id=14

  24. I am new to this and I am trying to figure out how to add multiple radio buttons or check boxes to my contact form. If you can respond it would be greatly appreciated.

  25. Sorry, I’m new to this plugin. I noticed files in a subdirectory, /styling, files like sky_blue_css.jpg that appear to look like various themes for the form, but I can’t find anywhere or any info on how to use these themes. Appreciate any help. Thanks.

  26. Hi.

    Thanks before for your plugin, But can you fix the problem to show javascript on custom page, so not load on every pages

    Really thanks

  27. ほんとに便利なプラグインをありがとうございます。

    フォーラムですでに解決済みのトピック(↓)と、

    [解決済み] Contact Form 7 でファイルアップロードが出来ません。

    http://ja.forums.wordpress.org/topic/1260

    かなり類似した状況にあると思われるのですが(こちらのトピックにも同様の投稿をいたしましたので、どちらかにご返答いただけと幸いです。)、wp-content/uploads/wpcf7_uploads というフォルダをつくり適当な書き込み権限を与えても、やはりファイルのアップロードに失敗してしまいます。
    別のレンタルサーバーに設置すると、問題なく添付ファイルを送信する事ができます。

    サーバー:WebArena SuiteX
    wordpress 2.8.4
    contact form 2.0.6

    よろしくお願いいたします。

  28. Is there a way to allow all file types, like [file file-356 filetypes:*]? The asterisk does not work CF.
    The rest of the plugin is great – simple and clean. Thanks

  29. great job CF7 .. congratulations.. I have a question ,,

    It’s possible to configure any msg, it was send only for register user in my blog ..?

    I need this plugin, but I want only recieve from register users.

    thnks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s