<?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: Error In Uploading a file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412209#M22278</link>
    <description>&lt;P&gt;We're not currently set up to provide API support over the phone or chat, but I'm happy to help here in the forum.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 18:44:02 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-04-20T18:44:02Z</dc:date>
    <item>
      <title>Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/410748#M22219</link>
      <description>&lt;P&gt;Hello Experts&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am New To Dropbox Api And Today i was trying to uplaod a file from api but got error .&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unknown API function: "files/upload \\eHiSS5jxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am using Http api&amp;nbsp; and my code is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function main()&lt;BR /&gt;local oHTTP,cJSON,url&lt;BR /&gt;setmode(25,80)&lt;BR /&gt;&lt;BR /&gt;ctoken := "&amp;lt;REDACTED&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;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; \" + ctoken&lt;BR /&gt;cJSON := '{"c:\tmp\pdf\CKF1907319.pdf","mode": "add","autorename": true,"mute": false,"strict_conflict": false,}'&lt;BR /&gt;URL&lt;BR /&gt;? cjson&lt;BR /&gt;wt = inkey(0)&lt;/P&gt;
&lt;P&gt;oHTTP := CREATEOBJECT('Msxml2.ServerXMLHTTP.6.0')&lt;BR /&gt;oHTTP:OPEN("POST", url , .F.)&lt;BR /&gt;oHTTP:setRequestHeader("Content-Type", "application/octet-stream")&lt;BR /&gt;oHTTP:SEND(cJSON)&lt;BR /&gt;IF oHTTP:status != 200&lt;BR /&gt;? oHTTP:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHTTP:responseText)&lt;BR /&gt;? "Error"&lt;BR /&gt;ELSE&lt;BR /&gt;? oHTTP:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHTTP:responseText)&lt;BR /&gt;ENDIF&lt;BR /&gt;wt = inkey(0)&lt;BR /&gt;return&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please me to solve this issue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vikram&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:59:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/410748#M22219</guid>
      <dc:creator>kirantara</dc:creator>
      <dc:date>2020-04-16T14:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/410793#M22222</link>
      <description>&lt;P&gt;[ Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/61251822/unknown-api-function-files-upload" target="_blank"&gt;https://stackoverflow.com/questions/61251822/unknown-api-function-files-upload&lt;/A&gt;&amp;nbsp;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've posted an answer on your StackOverflow question.&amp;nbsp;Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 15:01:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/410793#M22222</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-16T15:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/410850#M22225</link>
      <description>&lt;P&gt;Thank For your reply&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But After Change the url as you suggested i got same error&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unknown API function: "files/upload \\Authorization:eHiSS5jXq0AAAAAAAAAAduAlRf3zXNAV8zYWtJ12Iirzoxxxxxxxxxxx".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function main()&lt;BR /&gt;local oHTTP,cJSON,url&lt;BR /&gt;setmode(25,80)&lt;BR /&gt;&lt;BR /&gt;ctoken := "eHiSS5jXq0AAAAAAAAAAduAlRf3zXNAV8zYWtJ1xxxxxxxxxxxxxxxxx"&lt;BR /&gt;&lt;BR /&gt;* // cJSON = {"path": "hb_cwd()+"report.txt","mode": "add","autorename": true,"mute": false,"strict_conflict": false"}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;url := "&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt; \" + "Authorization:" + ctoken&lt;BR /&gt;cJSON := '{"c:\tmp\pdf\CKF1907319.pdf","mode": "add","autorename": true,"mute": false,"strict_conflict": false,}'&lt;BR /&gt;&lt;BR /&gt;? URL&lt;BR /&gt;? cjson&lt;BR /&gt;wt = inkey(0)&lt;/P&gt;&lt;P&gt;oHTTP := CREATEOBJECT('Msxml2.ServerXMLHTTP.6.0')&lt;BR /&gt;oHTTP:OPEN("POST", url , .F.)&lt;BR /&gt;oHTTP:setRequestHeader("Content-Type", "application/octet-stream")&lt;BR /&gt;oHTTP:SEND(cJSON)&lt;BR /&gt;IF oHTTP:status != 200&lt;BR /&gt;? oHTTP:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHTTP:responseText)&lt;BR /&gt;? "Error"&lt;BR /&gt;ELSE&lt;BR /&gt;? oHTTP:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHTTP:responseText)&lt;BR /&gt;ENDIF&lt;BR /&gt;wt = inkey(0)&lt;BR /&gt;return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please give example in http format how the api link look like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt; \Authorization:eHiSS5jXq0AAAAAAAAA&lt;BR /&gt;AduAlRf3zXNAV8zYWtJ12IirzonOa58ixxxxxxxxxxx&amp;nbsp;&lt;BR /&gt;{"c:\tmp\pdf\CKF1907319.pdf","mode": "add","autorename": true,"mute": false,"str&lt;BR /&gt;ict_conflict": false,}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help to issue the error&lt;/P&gt;&lt;P&gt;Thank You&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 16:47:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/410850#M22225</guid>
      <dc:creator>kirantara</dc:creator>
      <dc:date>2020-04-16T16:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/410861#M22226</link>
      <description>&lt;P&gt;In this code, you're still putting the access token on the URL, but additionally with the string "Authorization". You should instead be sending this as a header. Based on the rest of your code, for your client that would probably look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;oHTTP:setRequestHeader("Authorization", "Bearer" + &lt;SPAN&gt;ctoken&lt;/SPAN&gt;)&lt;/PRE&gt;
&lt;P&gt;Likewise, note that for&amp;nbsp;/2/files/upload, the API call parameters (your&amp;nbsp;cJSON), should go in a "Dropbox-API-Arg" header, and the file data to upload should go in the request body. Please refer to &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;the /2/files/upload documentation&lt;/A&gt; for more information on how to properly format this API call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 17:20:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/410861#M22226</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-16T17:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/411023#M22228</link>
      <description>&lt;P&gt;Thank You SIr&lt;/P&gt;&lt;P&gt;But Couldn't understand the issue please check my code and rectfiy the code where am wrong .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function main()&lt;BR /&gt;local oHTTP,cJSON,url&lt;BR /&gt;setmode(25,80)&lt;BR /&gt;&lt;BR /&gt;ctoken := "eHiSS5jXq0AAAAAAAAAAduAlRf3zXNAV8zYWtxxxxxxxxxxxxxx"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;url := "&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt; \"&lt;BR /&gt;cJSON := '{c:\tmp\pdf\CKF1907319.pdf, "mode": "add","autorename": true,"mute": false,"strict_conflict": false,}'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;oHTTP := CREATEOBJECT('Msxml2.ServerXMLHTTP.6.0')&lt;BR /&gt;oHTTP:OPEN("POST", url , .F.)&lt;BR /&gt;oHTTP:setRequestHeader("Authorization: Bearer " + ctoken)&lt;BR /&gt;oHTTP:setRequestHeader("Dropbox-API-Arg:")&lt;BR /&gt;oHTTP:setRequestHeader("Content-Type", "application/octet-stream")&lt;BR /&gt;oHTTP:SEND(cJSON)&lt;BR /&gt;IF oHTTP:status != 200&lt;BR /&gt;? oHTTP:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHTTP:responseText)&lt;BR /&gt;? "Error"&lt;BR /&gt;ELSE&lt;BR /&gt;? oHTTP:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHTTP:responseText)&lt;BR /&gt;ENDIF&lt;BR /&gt;wt = inkey(0)&lt;BR /&gt;return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to solve this issuse&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 00:14:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/411023#M22228</guid>
      <dc:creator>kirantara</dc:creator>
      <dc:date>2020-04-17T00:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/411243#M22239</link>
      <description>&lt;P&gt;We're happy to help with any questions or issues you might have about the&amp;nbsp;Dropbox API itself, but we can't debug or write code for you, especially when you're using a client not made or supported by&amp;nbsp;Dropbox (in this case,&amp;nbsp;oHTTP). You'll need to refer to &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" target="_self"&gt;the&amp;nbsp;Dropbox API documentation&lt;/A&gt; for information on what formats and parameters to use when calling the&amp;nbsp;Dropbox API, and then write the code for your library/platform accordingly. I also&amp;nbsp;recommend referring to the documentation for your library/platform as a reference for how to construct the HTTPS requests as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at your latest code though, a few more things I notice:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Your cJSON begins with '{c:\tmp\pdf\CKF1907319.pdf,', but per &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;the&amp;nbsp;/2/files/upload interface&lt;/A&gt;, that should be more like: '{"path": "/CKF1907319.pdf",'. That's supposed to be the path on&amp;nbsp;Dropbox where you want to put the uploaded file.&lt;/LI&gt;
&lt;LI&gt;You're not actually setting anything in the "Dropbox-API-Arg" header. That should be set with your API call parameters, which you have in&amp;nbsp;cJSON.&lt;/LI&gt;
&lt;LI&gt;I don't see where you actually send the file data to upload in the request body. Perhaps that should be done in&amp;nbsp;oHTTP:SEND?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 17 Apr 2020 14:56:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/411243#M22239</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-17T14:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/411970#M22257</link>
      <description>&lt;P&gt;Hello Sir&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could Not able to&amp;nbsp; Understand what to pass the values in cJson&amp;nbsp; and dropbox-Api-Arg&amp;nbsp; &amp;nbsp; i am getting some errors please help me to solve this issue&amp;nbsp;&lt;/P&gt;&lt;P&gt;File Which i have to upload&amp;nbsp; &amp;nbsp;is&amp;nbsp; &amp;nbsp;c:\Tmp\Pdf\Email.pdf&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and want to dropbox in Folder Names&amp;nbsp; &amp;nbsp;Abc2020&amp;nbsp; . how to pass both path in Cjson&amp;nbsp; and Dropbox-Api-arg&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function main()&lt;BR /&gt;local oHTTP,cJSON,url&lt;BR /&gt;setmode(25,80)&lt;BR /&gt;&lt;BR /&gt;ctoken := "eHiSS5jXq0AAAAAAAAAAduAlRf3zXNAV8zYWtJ1xxxxxxxxxxxxxxxxxxxxxx"&lt;BR /&gt;&lt;BR /&gt;cJSON := '{\"C:\TMP\PDF\EMAIL.PDF","mode": "add","autorename": true,"mute": false,"strict_conflict": false}'&lt;BR /&gt;url := '&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;'&lt;BR /&gt;// cJSON := '{"path"\cPath, "mode": "add","autorename": true,"mute": false,"strict_conflict": false,}'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;oHTTP := CREATEOBJECT('Msxml2.ServerXMLHTTP.6.0')&lt;BR /&gt;oHTTP:OPEN("POST", url , .F.)&lt;BR /&gt;oHttp:setRequestHeader( "Authorization", "Bearer " + ctoken )&lt;BR /&gt;&amp;nbsp;oHttp:setRequestHeader( "Dropbox-API-Arg", '{ "path": "' + cPath + '", "mode" : "add" }' )&lt;BR /&gt;oHttp:setRequestHeader( "Content-type", "application/octet-stream" )&lt;BR /&gt;oHttp:SEND( cJSON )&lt;/P&gt;&lt;P&gt;IF oHTTP:status != 200&lt;BR /&gt;? oHTTP:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHTTP:responseText)&lt;BR /&gt;? "Error"&lt;BR /&gt;ELSE&lt;BR /&gt;? oHTTP:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHTTP:responseText)&lt;BR /&gt;ENDIF&lt;BR /&gt;wt = inkey(0)&lt;BR /&gt;return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sir My Question is what to pass in Cjson and&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what to pass in Request header .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;oHttp:setRequestHeader( "Dropbox-API-Arg", '{ "path": "' + cPath + '", "mode" : "add" }' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regard&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vikram Chhajer&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 09:19:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/411970#M22257</guid>
      <dc:creator>kirantara</dc:creator>
      <dc:date>2020-04-20T09:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412194#M22272</link>
      <description>&lt;P&gt;The value you pass in the "Dropbox-API-Arg" header should be a JSON string containing the parameters you want to use for the&amp;nbsp;/2/files/upload call. You can find information on each of the parameters here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do&amp;nbsp;recommend using a JSON library to build your JSON string instead of trying to construct it manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The API v2 Explorer may also be a useful tool for prototyping calls and seeing what they would look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_upload" target="_blank"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_upload&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 18:01:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412194#M22272</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-20T18:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412205#M22277</link>
      <description>&lt;P&gt;Thank You Sir&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cani Get Your Whatsapp number so can call You And try to understand the soultion&amp;nbsp; . If Your dont Mind sir.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 18:31:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412205#M22277</guid>
      <dc:creator>kirantara</dc:creator>
      <dc:date>2020-04-20T18:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412209#M22278</link>
      <description>&lt;P&gt;We're not currently set up to provide API support over the phone or chat, but I'm happy to help here in the forum.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 18:44:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412209#M22278</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-20T18:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412214#M22280</link>
      <description>&lt;P&gt;Sir&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then Please i am sorry to say that i am not able to upload the pdf file to dropbox abc FOlder&amp;nbsp; please me help me to do this make changes in code which is attached here&lt;/P&gt;&lt;P&gt;File to Upload&amp;nbsp; &amp;nbsp;Email.pdf&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;upload to drop in folder abc folder with file name email.pdf&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where to mention and how to arttach in code&amp;nbsp; please change the code where necessary&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;**----------------------------&lt;BR /&gt;function main()&lt;BR /&gt;**----------------------------&lt;BR /&gt;Local oHttp, cJSON, urlUpload&lt;BR /&gt;&lt;BR /&gt;setmode(25,80)&lt;BR /&gt;&lt;BR /&gt;cToken := "eHiSS5jXq0AAAAAAAAAAduAlRf3zXxxxxxxxxxxxxxxxxxxxx"&lt;BR /&gt;&lt;BR /&gt;urlUpload := "&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;// cJSON := '{c:\tmp\pdf\CKF1907319.pdf, "mode": "add","autorename": true,"mute": false,"strict_conflict": false,}'&lt;BR /&gt;cJson := hb_memoread("demo.hbp")&lt;BR /&gt;&lt;BR /&gt;// cPath := "/HomeWork/demo.txt"&lt;BR /&gt;cPath := "/PMCSURAT/demo.txt"&lt;BR /&gt;&lt;BR /&gt;oHttp := CREATEOBJECT('Msxml2.ServerXMLHTTP.6.0')&lt;BR /&gt;oHttp:OPEN("POST", urlUpload , .F.)&lt;BR /&gt;oHttp:setRequestHeader( "Authorization", "Bearer " + cToken )&lt;BR /&gt;oHttp:setRequestHeader( "Dropbox-API-Arg", '{ "path": "' + cPath + '", "mode" : "overwrite" }' )&lt;BR /&gt;oHttp:setRequestHeader( "Content-type", "application/octet-stream" )&lt;BR /&gt;oHttp:SEND(cJSON)&lt;BR /&gt;IF oHttp:status != 200&lt;BR /&gt;? oHttp:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHttp:responseText)&lt;BR /&gt;? "Error"&lt;BR /&gt;ELSE&lt;BR /&gt;? oHttp:responseText&lt;BR /&gt;hb_memowrit("response.txt",oHttp:responseText)&lt;BR /&gt;ENDIF&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;wait&lt;BR /&gt;// wt = inkey(0)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &amp;amp; reagards&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 18:50:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412214#M22280</guid>
      <dc:creator>kirantara</dc:creator>
      <dc:date>2020-04-20T18:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error In Uploading a file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412254#M22283</link>
      <description>&lt;P&gt;I'm afraid I can't write the necessary code for you, so I&amp;nbsp;recommend referring to the documentation and my earlier replies for information on the expected request format for the&amp;nbsp;Dropbox API so you can debug and update your code to consume the API properly. If you discover any bugs with the&amp;nbsp;Dropbox API please let us know of course.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 21:02:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-In-Uploading-a-file/m-p/412254#M22283</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-20T21:02:21Z</dc:date>
    </item>
  </channel>
</rss>

