• CF7 is a great plugin – thank you very much!

    I have a minor suggestion. After each update, I keep editing one line in the code to enable “txt” file extension for attachments. I change the following line in plugins/contact-form-7/modules/file.php:

    $file_type_pattern = 'jpg|jpeg|png|gif|pdf|doc|docx|ppt|pptx|odt|avi|ogg|m4a|mov|mp3|mp4|mpg|wav|wmv';

    to add “|txt” at the end:

    $file_type_pattern = 'jpg|jpeg|png|gif|pdf|doc|docx|ppt|pptx|odt|avi|ogg|m4a|mov|mp3|mp4|mpg|wav|wmv|txt';

    I know that I could customize it in my forms, but I find it more convenient to keep the default list updated.

    It looks like “txt” was overlooked and should have been placed in that line following the logic of what is currently there, is that right?

    Would it make sense to implement this tiny change permanently in the master code?

    Thank you very much.

    https://wordpress.org/plugins/contact-form-7/

  • The topic ‘".txt" file type is not in the list of defaults allowed for attachments’ is closed to new replies.