<?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: Getting File Metadata after doing upload - Android in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-File-Metadata-after-doing-upload-Android/m-p/199389#M9273</link>
    <description>&lt;P&gt;Thanks, it seems to work.&amp;nbsp; I thought it might be something like that.&amp;nbsp; But starting from the official docs for uploadAndFinish, all I could see was that it returned type R.&amp;nbsp; Where in the docs was I supposed to see that R was FileMetadata in this case?&lt;/P&gt;</description>
    <pubDate>Sat, 24 Dec 2016 18:43:58 GMT</pubDate>
    <dc:creator>Robert S.138</dc:creator>
    <dc:date>2016-12-24T18:43:58Z</dc:date>
    <item>
      <title>Getting File Metadata after doing upload - Android</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-File-Metadata-after-doing-upload-Android/m-p/199368#M9270</link>
      <description>&lt;P&gt;To upload in Android I am using&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;sDbxClient&lt;/SPAN&gt;.files().uploadBuilder(pathName)&lt;BR /&gt;      .withMode(WriteMode.&lt;SPAN&gt;OVERWRITE&lt;/SPAN&gt;)&lt;BR /&gt;      .uploadAndFinish(inputStream);&lt;/PRE&gt;&lt;P&gt;which returns, what? The docs say it returns the server response as a "R".&amp;nbsp; How do I extract the file metadata from the server response to uploadAndFinish?&amp;nbsp; I want to get the server modified time from it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for something equivalent to what I do in Objective-C, where is use the completion block of uploadData:mode:autorename:clientModified:mute:inputData:.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:27:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-File-Metadata-after-doing-upload-Android/m-p/199368#M9270</guid>
      <dc:creator>Robert S.138</dc:creator>
      <dc:date>2019-05-29T09:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting File Metadata after doing upload - Android</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-File-Metadata-after-doing-upload-Android/m-p/199385#M9272</link>
      <description>&lt;P&gt;R is the response, containing the metadata of the uploaded file. So, for example in this case you could do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FileInputStream inputStream = new FileInputStream(localPath);
try {
    FileMetadata fileMetadata = client.files().uploadBuilder(remotePath)
            .withMode(WriteMode.OVERWRITE)
            .uploadAndFinish(inputStream);
    System.out.println(fileMetadata.getName());
    System.out.println(fileMetadata.getServerModified());
} finally {
    inputStream.close();
}&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Dec 2016 17:34:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-File-Metadata-after-doing-upload-Android/m-p/199385#M9272</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-24T17:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting File Metadata after doing upload - Android</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-File-Metadata-after-doing-upload-Android/m-p/199389#M9273</link>
      <description>&lt;P&gt;Thanks, it seems to work.&amp;nbsp; I thought it might be something like that.&amp;nbsp; But starting from the official docs for uploadAndFinish, all I could see was that it returned type R.&amp;nbsp; Where in the docs was I supposed to see that R was FileMetadata in this case?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2016 18:43:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-File-Metadata-after-doing-upload-Android/m-p/199389#M9273</guid>
      <dc:creator>Robert S.138</dc:creator>
      <dc:date>2016-12-24T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting File Metadata after doing upload - Android</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-File-Metadata-after-doing-upload-Android/m-p/199486#M9276</link>
      <description>&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/UploadBuilder.html" target="_self"&gt;UploadBuilder&lt;/A&gt; gives you an &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/UploadUploader.html" target="_self"&gt;UploadUploader&lt;/A&gt;&amp;nbsp;which is documented as&amp;nbsp;DbxUploader&amp;lt;FileMetadata,UploadError,UploadErrorException&amp;gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's definitely unclear/difficult to find if you're looking at uploadAndFinish itself though, so I'll ask the team to clarify that in the documentation. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2016 19:30:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-File-Metadata-after-doing-upload-Android/m-p/199486#M9276</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-26T19:30:53Z</dc:date>
    </item>
  </channel>
</rss>

