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]