Title: Filter for PDF
Last modified: May 23, 2018

---

# Filter for PDF

 *  [Chuckie](https://wordpress.org/support/users/ajtruckle/)
 * (@ajtruckle)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/filter-for-pdf/)
 * On my form I filter for PDF files. I was finding that Edge was not showing the
   filter.
 * I inspected the code and saw it written like this:
 * `<input name="file-S89-Template" size="40" class="wpcf7-form-control wpcf7-file"
   id="S89" accept=".pdf" aria-invalid="false" type="file">`
 * I see that `accept` has a value of `.pdf`. I have been looking at this [answer](https://stackoverflow.com/a/11231236/2287576)
   on StackOverflow it mentions:
 * `<input name="file1" type="file" accept="application/pdf" />`
 * I also looked [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept)
   and it mentions:
 *     ```
       Accept: <MIME_type>/<MIME_subtype>
       Accept: <MIME_type>/*
       Accept: */*
   
       // Multiple types, weighted with the quality value syntax:
       Accept: text/html, application/xhtml+xml, application/xml;q=0.9, */*;q=0.8
       ```
   
 * Can I please kindly ask you to investigate how you are applying the `accept` 
   filter values as I can’t get **PDF **to be selected in **Edge **at the moment.
 * Thank you
    Can I kindly ask you to
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffilter-for-pdf%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [Chuckie](https://wordpress.org/support/users/ajtruckle/)
 * (@ajtruckle)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/filter-for-pdf/#post-10316034)
 * Actually, they suggest it should be:
 * `accept=".pdf,application/pdf"`
 * They say that would have wider browser support, but that Edge doesn’t obey the`
   accept` attribute anyway. So I leave it up to you if you want to improve.
 * A related question though. Is there any subsequent test we can do to verify that
   the attachment is at least named a pdf?

Viewing 1 replies (of 1 total)

The topic ‘Filter for PDF’ 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

 * [accept](https://wordpress.org/support/topic-tag/accept/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [pdf](https://wordpress.org/support/topic-tag/pdf/)

 * 1 reply
 * 1 participant
 * Last reply from: [Chuckie](https://wordpress.org/support/users/ajtruckle/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/filter-for-pdf/#post-10316034)
 * Status: not resolved