Title: excel file attachment
Last modified: August 20, 2016

---

# excel file attachment

 *  [budskab](https://wordpress.org/support/users/budskab/)
 * (@budskab)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/excel-file-attachment/)
 * Hi
 * I need to be able to let people upload .xls files through the contact formula..
 * I’ve found that this is possible through adding xls to the standard file list
 *     ```
       /* File type validation */
   
       	// Default file-type restriction
       	if ( '' == $file_type_pattern )
       		$file_type_pattern = 'jpg|jpeg|png|gif|pdf|doc|docx|ppt|pptx|odt|avi|ogg|m4a|mov|mp3|mp4|mpg|wav|wmv|xls';
   
       	$file_type_pattern = trim( $file_type_pattern, '|' );
       	$file_type_pattern = '(' . $file_type_pattern . ')';
       	$file_type_pattern = '/\.' . $file_type_pattern . '$/i';
       ```
   
 * contact-form-7/modules/file.php
 * So it isn’t impossible, but, is there a way to make this change permanent (I 
   guess updating the plugin will erase my changes).
 * Thanks in advance,
    Mark
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/excel-file-attachment/#post-3167784)
 * [File Uploading and Attachment](http://contactform7.com/file-uploading-and-attachment/)
 *  Thread Starter [budskab](https://wordpress.org/support/users/budskab/)
 * (@budskab)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/excel-file-attachment/#post-3167785)
 * But it doesn’t seem to me that it says anywhere how to make .xls files a part
   of the accepted file types … it doesn’t work just adding the file type to generated
   tag in the Contact Form 7 admin panel

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘excel file attachment’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [contact-form](https://wordpress.org/support/topic-tag/contact-form/)
 * [Excel](https://wordpress.org/support/topic-tag/excel/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)
 * [xls](https://wordpress.org/support/topic-tag/xls/)

 * 2 replies
 * 2 participants
 * Last reply from: [budskab](https://wordpress.org/support/users/budskab/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/excel-file-attachment/#post-3167785)
 * Status: not resolved