diff options
Diffstat (limited to 'plugins/CloudFile/src/Services')
4 files changed, 15 insertions, 7 deletions
diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp index 72b544a232..16a9ee659f 100644 --- a/plugins/CloudFile/src/Services/dropbox_service.cpp +++ b/plugins/CloudFile/src/Services/dropbox_service.cpp @@ -231,6 +231,7 @@ UINT CDropboxService::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(); @@ -294,9 +295,10 @@ UINT CDropboxService::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()); } @@ -340,4 +342,4 @@ INT_PTR CDropboxService::UploadToDropbox(void *obj, WPARAM wParam, LPARAM lParam delete ftp; return res; -} +}
\ No newline at end of file diff --git a/plugins/CloudFile/src/Services/google_service.cpp b/plugins/CloudFile/src/Services/google_service.cpp index a15056b884..3877506b0f 100644 --- a/plugins/CloudFile/src/Services/google_service.cpp +++ b/plugins/CloudFile/src/Services/google_service.cpp @@ -246,6 +246,7 @@ UINT CGDriveService::Upload(FileTransferParam *ftp) CreateSharedLink(folderId, link); ftp->AppendFormatData(L"%s\r\n", ptrW(mir_utf8decodeW(link))); + ftp->AddSharedLink(link); } ftp->FirstFile(); @@ -290,6 +291,7 @@ UINT CGDriveService::Upload(FileTransferParam *ftp) char link[MAX_PATH]; CreateSharedLink(fileId, link); ftp->AppendFormatData(L"%s\r\n", ptrW(mir_utf8decodeW(link))); + ftp->AddSharedLink(link); } } while (ftp->NextFile()); } diff --git a/plugins/CloudFile/src/Services/microsoft_service.cpp b/plugins/CloudFile/src/Services/microsoft_service.cpp index 3b2f52a073..ec211f1244 100644 --- a/plugins/CloudFile/src/Services/microsoft_service.cpp +++ b/plugins/CloudFile/src/Services/microsoft_service.cpp @@ -231,6 +231,7 @@ UINT COneDriveService::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,6 +276,7 @@ UINT COneDriveService::Upload(FileTransferParam *ftp) char link[MAX_PATH]; CreateSharedLink(fileId, link); ftp->AppendFormatData(L"%s\r\n", ptrW(mir_utf8decodeW(link))); + ftp->AddSharedLink(link); } } while (ftp->NextFile()); } 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()); } |