Title: file upload validate
Last modified: April 22, 2024

---

# file upload validate

 *  [volmohammed](https://wordpress.org/support/users/volmohammed/)
 * (@volmohammed)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/file-upload-validate/)
 * In a form made by Contact Form 7 I allow the download of a pdf, jpg, or jpeg 
   file type. My concern is that the extension control is not fully performed.
 * Indeed, if I take a “test.exe” file and rename it “text.jpg”, I can submit my
   form and there’s no errors…
 * Is there a solution to test this? (e.g. by the mime test)
 * And if so where should I implement code?
 * Thank you in advance

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/file-upload-validate/#post-17703179)
 * See [Custom validation](https://contactform7.com/2015/03/28/custom-validation/)
 *  Thread Starter [volmohammed](https://wordpress.org/support/users/volmohammed/)
 * (@volmohammed)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/file-upload-validate/#post-17705223)
 * i see custom validation but this working in inputs but i’m working in file upload
   please help to resolve this problem

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

The topic ‘file upload validate’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [volmohammed](https://wordpress.org/support/users/volmohammed/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/file-upload-validate/#post-17705223)
 * Status: not resolved