--- title: upload.fileCdnRedirect description: The file must be downloaded from a [CDN DC](https://core.telegram.org/cdn). image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: upload.fileCdnRedirect [Back to constructors index](index.md) The file must be downloaded from a [CDN DC](https://core.telegram.org/cdn). ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |dc\_id|[int](../types/int.md) | Yes|[CDN DC](https://core.telegram.org/cdn) ID| |file\_token|[bytes](../types/bytes.md) | Yes|File token (see [CDN files](https://core.telegram.org/cdn)| |encryption\_key|[bytes](../types/bytes.md) | Yes|Encryption key (see [CDN files](https://core.telegram.org/cdn)| |encryption\_iv|[bytes](../types/bytes.md) | Yes|Encryption IV (see [CDN files](https://core.telegram.org/cdn)| |file\_hashes|Array of [FileHash](../types/FileHash.md) | Yes|File hashes| ### Type: [upload\_File](../types/upload_File.md) ### Example: ```php $upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'file_hashes' => [FileHash, FileHash]]; ``` Or, if you're into Lua: ```lua upload_fileCdnRedirect={_='upload.fileCdnRedirect', dc_id=int, file_token='bytes', encryption_key='bytes', encryption_iv='bytes', file_hashes={FileHash}} ```