I agree with the feature request. Just as a workaround suggestion in the meantime:
You can search for attachments. But if you are searching for all attachments, you’d have to search by filetype one at a time.
Example, to find all jpg files. This wouldn’t find .jpeg files though.
(Maybe someone has some fancy regex tricks for finding all images.):
file: /.*.jpg/
And you can find a specific file like this. This fuzzy matches too, as long as you type file: first.
file:name_of_file.gif

It isn’t all that powerful. For example, I don’t think you can search for attachments linked to a specific note, as far as I can tell.
Although if you link all your images with standard Markdown links, you could find the links to all png images inside content like this. Although again, only by one filetype at a time:
content: .png]]
file: Pasted is a search that will show all the images you copy/pasted, that got auto-named, “Pasted Image 3.png” etc.