MadelineProtoDocs/docs/TD_docs/methods/getFileMimeType.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

824 B

title description image
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 https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Method: getFileMimeType

Back to methods index

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

Parameters:

Name Type Required Description
file_name string Yes Name of the file or path to the file

Return type: Text