fileMimeType property

String? get fileMimeType

Gets the MIME type for this file path based on extension

Returns the MIME type or null if not determined

Example:

print('/path/to/document.pdf'.mimeType); // "application/pdf"

Implementation

String? get fileMimeType => QFileInfoUtils.getMimeType(this);