How to access file mime type in EditView.tpl file

Hi all,

I am trying to access the uploaded files mime type (for notes module in Edit view via cases edit page) in include\SugarFields\Fields\File\EditView.tpl
file but the problem is there are two main variables that are used in such a scenario
1 is $vardefs which fetches filename information
2 is $displayParams

I am not sure how to set value in any of these variables and access it in above file.

Please guide