After installing this extension on your ODC platform, you can utilize the highlighted method in your code to identify the file type or file extension when needed.
The screenshot below serves as an example of how to utilize this extension method.
Demo Link : Demo Url