diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-05-01 23:23:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-06-03 22:46:26 +0200 |
| commit | cd2dffcd903a2a1d9f2b452bdd3cfec45cebe614 (patch) | |
| tree | 36e39f7903377bd0c133c73b8eb53ac3eb3465d8 /src/lib/curl_uploader.cc | |
| parent | 4c5691d02a8d35c2cff5c4fc490682e493d36eba (diff) | |
Support FTPS uploads.
Diffstat (limited to 'src/lib/curl_uploader.cc')
| -rw-r--r-- | src/lib/curl_uploader.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/curl_uploader.cc b/src/lib/curl_uploader.cc index 3edb46429..c2e46538f 100644 --- a/src/lib/curl_uploader.cc +++ b/src/lib/curl_uploader.cc @@ -100,6 +100,10 @@ CurlUploader::upload_file(boost::filesystem::path from, boost::filesystem::path curl_easy_setopt(_curl, CURLOPT_URL, url.c_str()); + if (_destination.protocol == FileTransferProtocol::FTPS) { + curl_easy_setopt(_curl, CURLOPT_USE_SSL, CURLUSESSL_ALL); + } + dcp::File file(from, "rb"); if (!file) { throw NetworkError(String::compose(_("Could not open %1 to send"), from)); |
