diff options
| -rw-r--r-- | src/lib/curl_uploader.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/curl_uploader.cc b/src/lib/curl_uploader.cc index 7b8cf44c8..888293073 100644 --- a/src/lib/curl_uploader.cc +++ b/src/lib/curl_uploader.cc @@ -97,6 +97,9 @@ CurlUploader::upload_file(boost::filesystem::path from, boost::filesystem::path String::compose("ftp://%1/%2/%3", _destination.host, _destination.path, to.generic_string()).c_str() ); + curl_easy_setopt(_curl, CURLOPT_RESUME_FROM_LARGE, static_cast<curl_off_t>(-1)); + curl_easy_setopt(_curl, CURLOPT_INFILESIZE_LARGE, boost::filesystem::file_size(from)); + dcp::File file(from, "rb"); if (!file) { throw NetworkError(String::compose(_("Could not open %1 to send"), from)); |
