13
0

Set 'downloadable' property on Soundcloud uploads

Set the downloadable property according to what the user chose on files
uploaded to Soundcloud.
This commit is contained in:
Colin Fletcher 2014-05-23 18:59:53 +01:00
parent 29f0ad473f
commit 10ed21a498

View File

@ -198,6 +198,14 @@ SoundcloudUploader::Upload(std::string file_path, std::string title, std::string
CURLFORM_COPYCONTENTS, ispublic ? "public" : "private",
CURLFORM_END);
curl_formadd(&formpost,
&lastptr,
CURLFORM_COPYNAME, "track[downloadable]",
CURLFORM_COPYCONTENTS, downloadable ? "true" : "false",
CURLFORM_END);
/* initalize custom header list (stating that Expect: 100-continue is not
wanted */
struct curl_slist *headerlist=NULL;