MadelineProto/docs/TD_docs/methods/getFileMimeType.md

23 lines
747 B
Markdown
Raw Normal View History

2017-12-21 21:08:25 +01:00
---
title: getFileMimeType
description: 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
[Back to methods index](index.md)
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](../types/string.md) | Yes|Name of the file or path to the file|
### Return type: [Text](../types/Text.md)