--- title: cancelUploadFile description: Stops file uploading. Works only for files uploaded using uploadFile. For other files the behavior is undefined image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: cancelUploadFile [Back to methods index](index.md) YOU CANNOT USE THIS METHOD IN MADELINEPROTO Stops file uploading. Works only for files uploaded using uploadFile. For other files the behavior is undefined ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| |file\_id|[int](../types/int.md) | Identifier of file to cancel upload | Yes| ### Return type: [Ok](../types/Ok.md)