getMimeType method

String getMimeType(
  1. String path
)

Implementation

String getMimeType(String path) {
  String extension = path.substring(path.lastIndexOf(".") + 1);
  return extension.toLowerCase();
}