This question is an exact duplicate of:

I am working on a online sharepoint site collection, and i have attached files to custom list items, as follow:-

enter image description here

But i have the following questions:-

  1. can i link the attachment with cusotm columns? so for example when users upload an attachment file, to select its type from a drop-down site column?

  2. when i search for the list items' attachments, then inside the search result i will get the item's dispform.aspx and not the actual attachment file. so is there a way to force the search to show the attached file instead of showing the item's dispform.aspx? enter image description here

marked as duplicate by Gaurravs, Aakash Maurya, Robert Lindgren, Hugh Wood, Mohamed El-Qassas MVP Sep 5 '18 at 11:04

This question was marked as an exact duplicate of an existing question.


By default there is no Managed property assigned to Attachment field in List. Also there is no other way via Search to figure out if a list item contains an attachment or not. SharePoint does crawl the attachment and if we search on title or content of the document it will give the list item as the search result but not vice-versa.

In order to show the documents also along with List Item, you can try to modify the Hover panel of the List Item to show the Attachments.

More information, you can refer to the link(also should work on SharePoint Online):
SharePoint 2013 attachments in ListItem to show in Search Result / Hover panel

Not the answer you're looking for? Browse other questions tagged or ask your own question.