From 1785dc55c0a4cdcbc5f9788e0196e7d3a38fe53c Mon Sep 17 00:00:00 2001 From: aunsane Date: Sat, 24 Feb 2018 01:15:27 +0300 Subject: CloudFile: Implement new upload services (#1144) --- plugins/CloudFile/src/Services/yandex_service.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/CloudFile/src/Services/yandex_service.cpp') diff --git a/plugins/CloudFile/src/Services/yandex_service.cpp b/plugins/CloudFile/src/Services/yandex_service.cpp index 8a246fa59f..cf4c5786e0 100644 --- a/plugins/CloudFile/src/Services/yandex_service.cpp +++ b/plugins/CloudFile/src/Services/yandex_service.cpp @@ -234,6 +234,7 @@ UINT CYandexService::Upload(FileTransferParam *ftp) char link[MAX_PATH]; CreateSharedLink(path, link); ftp->AppendFormatData(L"%s\r\n", ptrW(mir_utf8decodeW(link))); + ftp->AddSharedLink(link); } ftp->FirstFile(); @@ -275,9 +276,10 @@ UINT CYandexService::Upload(FileTransferParam *ftp) } if (!ftp->IsFolder()) { - char url[MAX_PATH]; - CreateSharedLink(path, url); - ftp->AppendFormatData(L"%s\r\n", ptrW(mir_utf8decodeW(url))); + char link[MAX_PATH]; + CreateSharedLink(path, link); + ftp->AppendFormatData(L"%s\r\n", ptrW(mir_utf8decodeW(link))); + ftp->AddSharedLink(link); } } while (ftp->NextFile()); } -- cgit v1.2.3