747 B
747 B
title | description |
---|---|
getFileMimeType | Returns file's mime type guessing only by its extension. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously |
Method: getFileMimeType
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Returns file's mime type guessing only by its extension. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously
Params:
Name | Type | Required | Description |
---|---|---|---|
file_name | string | Yes | Name of the file or path to the file |