MadelineProtoDocs/docs/TD_docs/methods/uploadFile.md

26 lines
1.2 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: uploadFile
description: Asynchronously uploads file to the cloud without sending it in a message. Updates updateFile will notify about upload progress and successful upload. The file will not have persistent identifier until it will be sent in a message
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Method: uploadFile
2018-04-01 13:19:25 +02:00
[Back to methods index](index.md)
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Asynchronously uploads file to the cloud without sending it in a message. Updates updateFile will notify about upload progress and successful upload. The file will not have persistent identifier until it will be sent in a message
### Parameters:
2018-08-29 11:18:25 +02:00
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|file|[InputFile](../types/InputFile.md) | File to upload | Yes|
|file\_type|[FileType](../types/FileType.md) | File type | Yes|
|priority|[int](../types/int.md) | Priority of upload, 1-32. The higher priority, the earlier file will be uploaded. If priorities of two files are equal then the first one for which uploadFile is called will be uploaded first | Yes|
2018-04-01 13:19:25 +02:00
### Return type: [File](../types/File.md)