summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/yandex_service.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-24 01:15:27 +0300
committeraunsane <aunsane@gmail.com>2018-02-24 01:15:27 +0300
commit1785dc55c0a4cdcbc5f9788e0196e7d3a38fe53c (patch)
tree3c9fb0a2d27504f14e1ef9ffe43e2d58f4ea1085 /plugins/CloudFile/src/Services/yandex_service.cpp
parent3f343c22a352462660a71806303c1f8957a85702 (diff)
CloudFile: Implement new upload services (#1144)
Diffstat (limited to 'plugins/CloudFile/src/Services/yandex_service.cpp')
-rw-r--r--plugins/CloudFile/src/Services/yandex_service.cpp8
1 files changed, 5 insertions, 3 deletions
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());
}