<?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 Upload from Android application in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/367218#M20784</link>
    <description>&lt;P&gt;I am uploading files from android phone to my Dropbox. The path/directory where I am writing is Apps/p19&lt;/P&gt;
&lt;P&gt;my upload code does the following: But this never succeeds.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;mDBApi&lt;/SPAN&gt;.putFile(&lt;SPAN&gt;"Apps/p19/t.csv"&lt;/SPAN&gt;,inputStream, filename.length(), &lt;SPAN&gt;null&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Is my path wrong or am i making any mistake in the putFile call ?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 09:28:37 GMT</pubDate>
    <dc:creator>sesha</dc:creator>
    <dc:date>2019-09-26T09:28:37Z</dc:date>
    <item>
      <title>Upload from Android application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/367218#M20784</link>
      <description>&lt;P&gt;I am uploading files from android phone to my Dropbox. The path/directory where I am writing is Apps/p19&lt;/P&gt;
&lt;P&gt;my upload code does the following: But this never succeeds.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;mDBApi&lt;/SPAN&gt;.putFile(&lt;SPAN&gt;"Apps/p19/t.csv"&lt;/SPAN&gt;,inputStream, filename.length(), &lt;SPAN&gt;null&lt;/SPAN&gt;, &lt;SPAN&gt;null&lt;/SPAN&gt;);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Is my path wrong or am i making any mistake in the putFile call ?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 09:28:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/367218#M20784</guid>
      <dc:creator>sesha</dc:creator>
      <dc:date>2019-09-26T09:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Upload from Android application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/367341#M20789</link>
      <description>&lt;P&gt;It looks like there are a few issues here:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Based on "mDBApi.putFile", it looks like you're using an old and now retired&amp;nbsp;Dropbox API (v1) and SDK. You should instead use&amp;nbsp;Dropbox API v2. For accessing&amp;nbsp;Dropbox API v2 from Android, we&amp;nbsp;recommend using &lt;A href="https://github.com/dropbox/dropbox-sdk-java" target="_self"&gt;the official&amp;nbsp;Dropbox API v2 Java SDK&lt;/A&gt;. There's &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" target="_self"&gt;an example Android app using it here&lt;/A&gt;. For uploading files, you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#upload-java.lang.String-" target="_self"&gt;the upload method&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;When specifying a non-root path, e.g., to indicate where the uploaded file should go, the path should start with a "/".&lt;/LI&gt;
&lt;LI&gt;If your app is registered for the "app folder" permission, you shouldn't include the "/Apps/&amp;lt;app folder name&amp;gt;" portion of&amp;nbsp;the path. When making a call using an access token for an app with the app folder permission, the&amp;nbsp;Dropbox API will automatically translate it to be relative to the app folder. So, you should just supply a path like "/t.csv".&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 26 Sep 2019 15:20:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/367341#M20789</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-26T15:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Upload from Android application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/367732#M20807</link>
      <description>&lt;P&gt;Thanks. it worked with v2 api&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2019 08:04:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/367732#M20807</guid>
      <dc:creator>sesha</dc:creator>
      <dc:date>2019-09-28T08:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Upload from Android application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/403335#M22006</link>
      <description>&lt;P&gt;How can I upload files to a specific folder in android&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 10:39:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/403335#M22006</guid>
      <dc:creator>aliazaz</dc:creator>
      <dc:date>2020-03-20T10:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Upload from Android application</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/403336#M22007</link>
      <description>&lt;P&gt;got the answer:&lt;/P&gt;&lt;PRE&gt;FileInputStream(file).&lt;SPAN&gt;use &lt;/SPAN&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;item &lt;SPAN&gt;-&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;val &lt;/SPAN&gt;metadata = &lt;SPAN&gt;client&lt;/SPAN&gt;.files().uploadBuilder(&lt;SPAN&gt;"/&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;rootPATH&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;file.&lt;SPAN&gt;absolutePath&lt;/SPAN&gt;.&lt;SPAN&gt;substringAfterLast&lt;/SPAN&gt;(&lt;SPAN&gt;"/"&lt;/SPAN&gt;)&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;            .uploadAndFinish(item)&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Mar 2020 10:44:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-from-Android-application/m-p/403336#M22007</guid>
      <dc:creator>aliazaz</dc:creator>
      <dc:date>2020-03-20T10:44:24Z</dc:date>
    </item>
  </channel>
</rss>

