Show file extension in a SharePoint document library

  • Web
  • SharePoint

By default, document libraries do not show file extensions. You have to look at the icon to guess the kind of the document. However, multiple extensions can have the same icon. So, it could be useful to display the extension.

  1. Open SharePoint Designer
  2. Edit the document library view
  3. Right click on the file name and select "Edit Formula"
  4. Use the following XPath expression $thisNode/@FileLeafRef
  5. Save changes

Voila 😃

Do you have a question or a suggestion about this post? Contact me on Twitter or by email!

Follow me:
Enjoy this blog?Buy Me A CoffeeDonate with PayPal