Fix FILE_UPLOAD_RESTART.

This commit is contained in:
levlam 2024-07-25 13:45:34 +03:00
parent 2760db1fe4
commit 8f7e9e116b

View File

@ -4248,6 +4248,8 @@ void FileManager::on_upload_error_impl(FileNodePtr node, UploadQuery::Type type,
if (begins_with(status.message(), "FILE_UPLOAD_RESTART")) {
if (ends_with(status.message(), "WITH_FILE_REFERENCE")) {
node->upload_was_update_file_reference_ = true;
} else {
node->delete_partial_remote_location();
}
return run_upload(node, {});
}