File utils

The IFileUtils help to manipulate files (metadata, mime-type, extension, …).

Mime-type

It is possible to retrieve the mime type from the file’s name:

String mimeType = SDKFactory.UTILS.getFileUtils().retrieveMimeType(myFileName);
Note

The mime-type is deducted from the extension in the filename. No metadata is checked in case of wrong filename.