summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/dropbox_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/Services/dropbox_service.cpp')
-rw-r--r--plugins/CloudFile/src/Services/dropbox_service.cpp10
1 files changed, 6 insertions, 4 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