<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Upload a file using c++ via curl in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360120#M20521</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;yeah&lt;/P&gt;&lt;P&gt;you are right I can read a text file content into a &lt;EM&gt;char&lt;/EM&gt; and pass it as a parameter but what aboout a audio file or a video?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2019 18:06:40 GMT</pubDate>
    <dc:creator>hb_</dc:creator>
    <dc:date>2019-08-14T18:06:40Z</dc:date>
    <item>
      <title>Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360023#M20506</link>
      <description>&lt;P&gt;Hi, I was googling for a way to upload a file to any cloud storage using c++ and came across dropbox api. I found the code, so I did a copy and paste to try and see if it works. I entered the Access token and ran the code, the upload failed showing this error:&lt;/P&gt;
&lt;P&gt;"Error in call to API function "files/upload": The given OAuth 2 access token is malformed."&lt;/P&gt;
&lt;P&gt;I suspect the error could be related to this line of code:&lt;/P&gt;
&lt;P&gt;curl_easy_setopt(curl, CURLOPT_URL, "&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;");&lt;/P&gt;
&lt;P&gt;But I am new in this so I have no idea how to solve it.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 10:42:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360023#M20506</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-09-10T10:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360031#M20507</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1100728"&gt;@hb_&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Definitely the problem is not in cited code line. Did you set properly CURLOPT_XOAUTH2_BEARER parameter? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@86FF27E33EE6AE58E01795BD66324A7F/images/emoticons/1f914.png" alt=":thinking:" title=":thinking:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives some direction. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 01:29:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360031#M20507</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-08-14T01:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360048#M20508</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp; Thank you. You were right, I guess this time I set&amp;nbsp;&lt;SPAN&gt;CURLOPT_XOAUTH2_BEARER parameter properly so it gave another error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Error in call to API function "files/upload": Must provide HTTP header "Authorization" or URL parameter "authorization"."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am searching to find out what this error could be about.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you can help in any way I would much appreciate.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 07:21:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360048#M20508</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-08-14T07:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360056#M20509</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp; I think it worked&lt;/P&gt;&lt;P&gt;However I came to find that the code does not do what I actually want, what it does is just creates a new file and write something you specify to it but&amp;nbsp;I want to upload a local file from my computer to my dropbox account?&lt;/P&gt;&lt;P&gt;Any idea how can I do that?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 10:42:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360056#M20509</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-08-14T10:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360077#M20511</link>
      <description>&lt;P&gt;Hey &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1100728"&gt;@hb_&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Seems you have some progress. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt; Most upload operations (no restricted to Dropbox) are POST based. It would be difficult (and impractical) to encode big file's content to GET parameters! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@5FF1AF2F7F9155FCB85E563B9B3761E4/images/emoticons/1f61d.png" alt=":stuck_out_tongue_closed_eyes:" title=":stuck_out_tongue_closed_eyes:" /&gt; Further, every content is transferred as... content and you have to direct where this content to be placed on. The target file name could be the same as source file name (if any) or different.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt; The choice is yours! I'm not sure where you read reference info for CURL, but curl.haxx.se is good starting point and together with Dropbox API (also SDK) documents you can do what you want. Between: libcurl is C library, not C++ (as in your thread header).&lt;/P&gt;&lt;P&gt;Of course would be nice if there was Dropbox C/C++ SDK. It's really curious why 'fundamental' languages C and&amp;nbsp; C++ are left without proper support from Dropbox side. There are many libraries providing underlying transport support that could be used as base for Dropbox 'shell'. For example Qt, WxWidgets, Boost and many others. Of course libcurl, discussed here, is also good example. This thread could be a proposal! &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;, What you would say about? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@88EA68687A32E94CAA74CC5EF63A398A/images/emoticons/1f60e.png" alt=":sunglasses:" title=":sunglasses:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 12:54:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360077#M20511</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-08-14T12:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360105#M20518</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;Thanks for helping out! I can't speak to why any particular language was or wasn't supported in an official SDK,&amp;nbsp;but I'll pass this along as a feature request for an official C/C++ Dropbox SDK. I can't promise if or when that might be implemented though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1100728"&gt;@hb_&lt;/a&gt;&amp;nbsp;If you're still having trouble, please share the code you have so far so we can take a look.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, when uploading a file to&amp;nbsp;Dropbox via the&amp;nbsp;Dropbox API /2/files/upload endpoint, the data for the file you want to upload needs to be sent in the request body. For example, you might do something like this:&lt;/P&gt;
&lt;PRE&gt;curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "data for upload here");&lt;/PRE&gt;
&lt;P&gt;To get the data you want to upload, you can use whatever local file I/O access you have to read the data from the local file.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 16:21:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360105#M20518</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-08-14T16:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360110#M20519</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;, thanks for replying so quick&lt;/P&gt;&lt;P&gt;I followed your suggestion and tried tp use &lt;EM&gt;std::ifstream &lt;/EM&gt;like this:&lt;/P&gt;&lt;PRE&gt;CURL *curl;
    CURLcode res;

    /* In windows, this will init the winsock stuff */
    curl_global_init(CURL_GLOBAL_ALL);

    /* get a curl handle */
    curl = curl_easy_init();

    string test = "D:\\Desktop\\test.txt";

    std::ifstream file(test);

    if(curl)
    {
        printf ("Running curl test.\n");

        struct curl_slist *headers=NULL; /* init to NULL is important */
        headers = curl_slist_append(headers, "Authorization: Bearer &amp;lt;my_access_token&amp;gt;");
        headers = curl_slist_append(headers, "Content-Type: application/octet-stream");
        headers = curl_slist_append(headers, "Dropbox-API-Arg: {\"path\":\"/test.txt\"}");
        curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);

        curl_easy_setopt(curl, CURLOPT_URL, "https://content.dropboxapi.com/2/files/upload");
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, file);

        curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, FALSE);

        /* Perform the request, res will get the return code */
        res = curl_easy_perform(curl);
        /* Check for errors */
        if(res != CURLE_OK)
            fprintf(stderr, "curl_easy_perform() failed: %s\n",
                    curl_easy_strerror(res));

        /* always cleanup */
        curl_easy_cleanup(curl);

        printf ("\nFinished curl test.\n");

    }
    curl_global_cleanup();

    printf ("Done!\n");&lt;/PRE&gt;&lt;P&gt;but it didn't compile displaying this error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C:\Min.GW\curl-7.64.1-win64-mingw\include\curl\curl.h|2857|error: use of deleted function 'std::basic_ifstream&amp;lt;_CharT, _Traits&amp;gt;::basic_ifstream(const std::basic_ifstream&amp;lt;_CharT, _Traits&amp;gt;&amp;amp;) [with _CharT = char; _Traits = std::char_traits&amp;lt;char&amp;gt;]'|&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But before that I had this code:&lt;/P&gt;&lt;PRE&gt;CURL *curl;
    CURLcode res;

    /* In windows, this will init the winsock stuff */
    curl_global_init(CURL_GLOBAL_ALL);

    /* get a curl handle */
    curl = curl_easy_init();
    

    if(curl)
    {
        printf ("Running curl test.\n");

        struct curl_slist *headers=NULL; /* init to NULL is important */
        headers = curl_slist_append(headers, "Authorization: Bearer &amp;lt;my_access_token&amp;gt;");
        headers = curl_slist_append(headers, "Content-Type: application/octet-stream");
        headers = curl_slist_append(headers, "Dropbox-API-Arg: {\"path\":\"/D:\\Desktop\\test.txt\"}");
        curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);

        curl_easy_setopt(curl, CURLOPT_URL, "https://content.dropboxapi.com/2/files/upload");
        

        curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, FALSE);

        /* Perform the request, res will get the return code */
        res = curl_easy_perform(curl);
        /* Check for errors */
        if(res != CURLE_OK)
            fprintf(stderr, "curl_easy_perform() failed: %s\n",
                    curl_easy_strerror(res));

        /* always cleanup */
        curl_easy_cleanup(curl);

        printf ("\nFinished curl test.\n");

    }
    curl_global_cleanup();

    printf ("Done!\n");&lt;/PRE&gt;&lt;P&gt;And this would just create new folders &amp;nbsp;and files in my account&lt;BR /&gt;Don't know if the codes I posted might be too long, the difference between the two is only at this line:&lt;/P&gt;&lt;PRE&gt;curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "test data for upload");&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Aug 2019 16:59:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360110#M20519</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-08-14T16:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360111#M20520</link>
      <description>&lt;P&gt;It's error to pass ifstream object as char sequence! You have to read the file content. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:07:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360111#M20520</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-08-14T17:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360120#M20521</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;yeah&lt;/P&gt;&lt;P&gt;you are right I can read a text file content into a &lt;EM&gt;char&lt;/EM&gt; and pass it as a parameter but what aboout a audio file or a video?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 18:06:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360120#M20521</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-08-14T18:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360121#M20522</link>
      <description>&lt;P&gt;The same. In addition you can use CURLOPT_POSTFIELDSIZE (you can't rely on zero termination). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;&lt;P&gt;Good example could be foud &lt;A href="https://curl.haxx.se/libcurl/c/http2-upload.html" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 18:22:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360121#M20522</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-08-14T18:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360142#M20523</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;I have spent some trying to figure the code out and I did, not everything though, but I couldn't apply it to my code. It looks like it is the hard way to do that&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;any clue?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 22:01:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360142#M20523</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-08-14T22:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360143#M20524</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1100728"&gt;@hb_&lt;/a&gt;&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@AEF569BFDD1DD3EB9180949D237CD92A/images/emoticons/1f600.png" alt=":grinning:" title=":grinning:" /&gt; &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@88EA68687A32E94CAA74CC5EF63A398A/images/emoticons/1f60e.png" alt=":sunglasses:" title=":sunglasses:" /&gt; Yes definitely. You are trying to implement something like new SDK, in fact. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt; That's why I proposed this on the thread! To be more easy, at least for future. May be an easier way would be take a look on some existing SDK (on language familiar to you) and reimplement what's there (at least needed parts).&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 22:06:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360143#M20524</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-08-14T22:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360144#M20525</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;so you are saying that currently there's no way to upload file from my computer to my dropbox account using c++ via curl?? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@5256EFF7FF66B3E2CD09098130811415/images/emoticons/1f622.png" alt=":cry:" title=":cry:" /&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@5256EFF7FF66B3E2CD09098130811415/images/emoticons/1f622.png" alt=":cry:" title=":cry:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 22:09:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360144#M20525</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-08-14T22:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360145#M20526</link>
      <description>&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@61150E83DB692FD965454AF3BF0EDBC8/images/emoticons/1f62e.png" alt=":open_mouth:" title=":open_mouth:" /&gt; No! Just opposite. Just some more work would be needed, because of missing SDK ready. And Between: again libcurl is C library, not C++, that's why ifstream object can't be 'stream' (i.e. cast) directly. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt; Be careful.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 22:14:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360145#M20526</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-08-14T22:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360146#M20527</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;C code still works on C++, so any C code that can do what I am intending to do would be useful to me.&lt;/P&gt;&lt;P&gt;And I need to know that 'some more work' so I can do it&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@8BFF634FABEFCD8860E49834D32E544B/images/emoticons/1f601.png" alt=":grin:" title=":grin:" /&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@8BFF634FABEFCD8860E49834D32E544B/images/emoticons/1f601.png" alt=":grin:" title=":grin:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 22:24:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360146#M20527</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-08-14T22:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360147#M20528</link>
      <description>&lt;P&gt;Yes, of course. But there are some differences you have to be aware! In C++ you can use overload functions (for example), but not in C. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt; Again, just be careful.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 22:27:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360147#M20528</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-08-14T22:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360156#M20529</link>
      <description>&lt;P&gt;I have some basic knowledge of C and I am aware of the C limitations&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I really thank you&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp; for investing so much time trying to help me. I really appreciate it.&lt;/P&gt;&lt;P&gt;I will keep looking for a way to do what I want.&lt;BR /&gt;Hopefully&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;will come with a solution&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 22:42:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360156#M20529</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-08-14T22:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360253#M20533</link>
      <description>&lt;P&gt;You're on the right track. That is, you can upload files to&amp;nbsp;Dropbox using HTTPS requests to &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;/2/files/upload&lt;/A&gt;, and you have the basic code to do so already.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you're currently working on how to get the data from the local file system though, which isn't specific to&amp;nbsp;Dropbox, so I'm afraid I can't offer much specific help with that in particular, nor do I have a code sample for that in particular. (I'm also certainly not a C expert.)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 15:48:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360253#M20533</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-08-15T15:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360259#M20534</link>
      <description>&lt;P&gt;As I said, I will keep looking&lt;/P&gt;&lt;P&gt;Thank you for your time&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for DropBox I will be expecting an official C++ SDK soon&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@8BFF634FABEFCD8860E49834D32E544B/images/emoticons/1f601.png" alt=":grin:" title=":grin:" /&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@8BFF634FABEFCD8860E49834D32E544B/images/emoticons/1f601.png" alt=":grin:" title=":grin:" /&gt;&lt;/P&gt;&lt;P&gt;Edit: As a note I found &amp;nbsp;a repo on github, a dropbox api c++ library that on looks seems to do what I want but I haven't figure the whole code out and get it to work&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/rahuliyer/dropbox-cpp" target="_blank"&gt;https://github.com/rahuliyer/dropbox-cpp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp; if you guys could check it out some time and try to figure the code out and hit me back that would be awsome nit only for me but for anyone that wants to do what I want to do&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:34:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360259#M20534</guid>
      <dc:creator>hb_</dc:creator>
      <dc:date>2019-08-15T16:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file using c++ via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360263#M20535</link>
      <description>&lt;P&gt;Just to be clear, I've sent this along as a feature request, but I can't promise if or when&amp;nbsp;Dropbox would release an official C++ SDK for API v2. (I'm not currently of any such work on one.)&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 17:02:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-a-file-using-c-via-curl/m-p/360263#M20535</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-08-15T17:02:11Z</dc:date>
    </item>
  </channel>
</rss>

