I have uploaded some excel and pdf files in a folder in media library. Now I am using media gallery for displaying all files. Here I want to differ displaying file is excel or pdf.
My question is,how to get file extension of file which has uploaded in media library using transformation? I have tried with "GetMediaFileUrl()" but did not get correct path.
Please suggest me how to resolve this issue?
Thanks in advance...
You can use <%# Eval("FileExtension") %> in your transformation get the extension.
<%# Eval("FileExtension") %>
Please, sign in to be able to submit a new answer.