From http package use -> String? mimeType = ContentType.parse(file.path).mimeType;
String? mimeType = ContentType.parse(file.path).mimeType;