upload.reuploadCdnFile #

Request a reupload of a certain file to a CDN DC.

Layer 223

---functions---
upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector<FileHash>;

Parameters #

NameTypeDescription
file_tokenbytesFile token
request_tokenbytesRequest token

Result #

Vector<FileHash>

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400CDN_METHOD_INVALIDYou can't call this method in a CDN DC.
500CDN_UPLOAD_TIMEOUTA server-side timeout occurred while reuploading the file to the CDN DC.
400FILE_TOKEN_INVALIDThe master DC did not accept the file_token (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile.
400LOCATION_INVALIDThe provided location is invalid.
400REQUEST_TOKEN_INVALIDThe master DC did not accept the request_token from the CDN DC. Continue downloading the file from the master DC using upload.getFile.
400RSA_DECRYPT_FAILEDInternal RSA decryption failed.

Encrypted CDNs for Speed and Security #

How client apps download popular public files from secondary CDN data centers.