Get Image Extension

Hi, How to get the file type or extension of an image file or any file? In a datagrid i click on new and on save this saves the File. Now This entity should store the exact path(even if its a local path in a desktop) in an attribute. Please help
1 answers

You can create a custom java action to get the extension or use a microflow to get the extension. Use the before commit event to determine the extension