# Feature request: Add "includes image" to the Advanced search options

**URL:** https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103
**Category:** Feature
**Created:** [December 12, 2016, 1:08am UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103 "2016-12-12T01:08:53Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [December 12, 2016, 1:08am UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/1 "2016-12-12T01:08:53Z")

</div>

Perhaps in the “Only return topics/posts that…” section?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 12, 2016, 1:19am UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/2 "2016-12-12T01:19:31Z")

</div>

Sure, this popped up before. Support the ability to search for posts with images, but it is not a trivial change.

---

<div class="post-metadata">

### Author: ![dmacjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmacjam/32/67659_2.png) [@dmacjam](https://meta.discourse.org/u/dmacjam)
#### Post date: [March 13, 2017, 2:22pm UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/3 "2017-03-13T14:22:11Z")

</div>

I have two questions to this feature:

- Is it both for uploaded images and images pasted as links?

- Is there a specific use case for images? I think it might be more general to filter posts with any allowed type of attachment uploaded (e.g. pdf, csv).

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [March 13, 2017, 2:33pm UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/4 "2017-03-13T14:33:29Z")

</div>

Good point. Our site only included images, we’ve added .pdf in the meantime.

How about:  
“Includes external link”  
“Includes uploaded file”

with  
`Upload:image, .pdf, xml, .jpg, png`

as manual fine grained filters so the user can add very explicit filters as required?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [March 16, 2017, 2:41pm UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/5 "2017-03-16T14:41:47Z")

</div>

> [@dmacjam](#):
>
> Is it both for uploaded images and images pasted as links?

Both.

> [@dmacjam](#):
>
> Is there a specific use case for images? I think it might be more general to filter posts with any allowed type of attachment uploaded (e.g. pdf, csv).

I think that should be its own filter. People frequently post images from other image sharing resources like imgur.

---

<div class="post-metadata">

### Author: ![dmacjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmacjam/32/67659_2.png) [@dmacjam](https://meta.discourse.org/u/dmacjam)
#### Post date: [July 31, 2017, 5:08pm UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/6 "2017-07-31T17:08:20Z")

</div>

Resolved with:

- searching for **posts with images** by selecting filter _Includes image(s)_ in section Only return topics/posts that… - [Search posts with images by dmacjam · Pull Request #4917 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4917)
- searching for **posts which contain files with explicit file extensions** by querying `<keywords> filetype:pdf` - [FEATURE: Search posts by filetype by dmacjam · Pull Request #4958 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4958)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [November 18, 2017, 11:11pm UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/7 "2017-11-18T23:11:48Z")

</div>

> [@dmacjam](#):
>
> searching for posts which contain files with explicit file extensions by querying \<keywords\> filetype:pdf

This is really useful, but I had to search for a while on meta to find the correct syntax.

Could it be added to the advanced search UI?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 19, 2017, 8:53pm UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/8 "2017-11-19T20:53:40Z")

</div>

Sure, if you feel like adding it! Go for it

---

<div class="post-metadata">

### Author: ![coderberry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coderberry/32/99652_2.png) [@coderberry](https://meta.discourse.org/u/coderberry)
#### Post date: [November 29, 2017, 2:00am UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/9 "2017-11-29T02:00:54Z")

</div>

This appears to have been completed on master

 ![](https://global.discourse-cdn.com/meta/original/3X/7/a/7ab695edfdbcef3fa0bd556e6e6e6e5c9307fb87.jpg)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 29, 2017, 2:09am UTC](https://meta.discourse.org/t/feature-request-add-includes-image-to-the-advanced-search-options/54103/10 "2017-11-29T02:09:53Z")

</div>


