Perhaps in the “Only return topics/posts that…” section?
Sure, this popped up before. Support the ability to search for posts with images, but it is not a trivial change.
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).
Good point. Our site only included images, we’ve added .pdf in the meantime.
“Includes external link”
“Includes uploaded file”
Upload:image, .pdf, xml, .jpg, png
as manual fine grained filters so the user can add very explicit filters as required?
I think that should be its own filter. People frequently post images from other image sharing resources like imgur.
- searching for posts with images by selecting filter Includes image(s) in section Only return topics/posts that… - https://github.com/discourse/discourse/pull/4917
- searching for posts which contain files with explicit file extensions by querying
<keywords> filetype:pdf- https://github.com/discourse/discourse/pull/4958
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?
Sure, if you feel like adding it! Go for it