mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 05:05:43 +01:00
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:
parent
11ff88d417
commit
d479df3dcd
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue