Fix FILE_UPLOAD_RESTART.
This commit is contained in:
parent
2760db1fe4
commit
8f7e9e116b
@ -4248,6 +4248,8 @@ void FileManager::on_upload_error_impl(FileNodePtr node, UploadQuery::Type type,
|
|||||||
if (begins_with(status.message(), "FILE_UPLOAD_RESTART")) {
|
if (begins_with(status.message(), "FILE_UPLOAD_RESTART")) {
|
||||||
if (ends_with(status.message(), "WITH_FILE_REFERENCE")) {
|
if (ends_with(status.message(), "WITH_FILE_REFERENCE")) {
|
||||||
node->upload_was_update_file_reference_ = true;
|
node->upload_was_update_file_reference_ = true;
|
||||||
|
} else {
|
||||||
|
node->delete_partial_remote_location();
|
||||||
}
|
}
|
||||||
return run_upload(node, {});
|
return run_upload(node, {});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user