<?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: dropboxapi.com/2/files/upload response object missing the item `.tag` key/value in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxapi-com-2-files-upload-response-object-missing-the-item/m-p/283941#M17385</link>
    <description>&lt;P&gt;This is working as expected. &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;The&amp;nbsp;/2/files/list_folder endpoint returns a List of Metadata&lt;/A&gt;. Metadata is a datatype with subtypes that can be any of: FileMetadata, FolderMetadata, DeletedMetadata. The '.tag' identifies the subtype.&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;The&amp;nbsp;/2/files/upload endpoint only returns a&amp;nbsp;FileMetadata&lt;/A&gt;, so no '.tag' is needed or returned.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When uploading using&amp;nbsp;/2/files/upload, you should only supply &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;the documented parameters&lt;/A&gt;. If something goes wrong, you'll get an error response, such as the 409 you mentioned, in which case you should check the response body, as it will contain a more useful error message.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2018 16:48:15 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-07-10T16:48:15Z</dc:date>
    <item>
      <title>dropboxapi.com/2/files/upload response object missing the item `.tag` key/value</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxapi-com-2-files-upload-response-object-missing-the-item/m-p/283851#M17380</link>
      <description>&lt;P&gt;I'm saving a text file in "overwrite" mode, but the response object I get back for the item is missing it's `.tag` property (here, it should be file).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example (bits copied from chrome dev console)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="header-name"&gt;Request URL:&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;`&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;`&lt;/DIV&gt;
&lt;DIV class="header-name"&gt;Dropbox-API-Arg:&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;`{"autorename":false,"mode":{".tag":"overwrite"},"mute":true,"path":"/songbook/Aeroplane over the Sea.pro"}`&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;Response:&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;```&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;{"name": "Aeroplane over the Sea.pro", "path_lower": "/songbook/aeroplane over the sea.pro", "path_display": "/SongBook/Aeroplane over the Sea.pro", "parent_shared_folder_id": "1397796772", "id": "id:HvHBCmOrUnAAAAAAAAAAbw", "client_modified": "2018-07-10T06:10:29Z", "server_modified": "2018-07-10T06:10:30Z", "rev": "1f15350afa4", "size": 1670, "sharing_info": {"read_only": false, "parent_shared_folder_id": "1397796772", "modified_by": "dbid:AAC7xJh2VcDvncsSSMKnV9xJNEFqtltu0i4"}, "content_hash": "5c4350e6e6ed022b9f1a8f08ba159d10632939f0255735224fccafe899288773"}&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;```&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;Prior response when doing a list_folder returned that file object like this:&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;```&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;{".tag":"file","name":"Aeroplane over the Sea.pro","path_lower":"/songbook/aeroplane over the sea.pro","path_display":"/SongBook/Aeroplane over the Sea.pro","parent_shared_folder_id":"1397796772","id":"id:HvHBCmOrUnAAAAAAAAAAbw","client_modified":"2018-07-10T06:10:29Z","server_modified":"2018-07-10T06:10:30Z","rev":"1f15350afa4","size":1670,"sharing_info":{"read_only":false,"parent_shared_folder_id":"1397796772","modified_by":"dbid:AAC7xJh2VcDvncsSSMKnV9xJNEFqtltu0i4"},"content_hash":"5c4350e6e6ed022b9f1a8f08ba159d10632939f0255735224fccafe899288773"}```&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;(notice the above has a `.tag` property)&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;I'm writing a web application and blindly trying to use the dropbox response objects as the source of truth.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;The problem is that if I lose `.tag` in the API responses, when I try to save a second time I get a `409` error for `/upload` - when `.tag` is set to file&amp;nbsp;it works.&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="header-value source-code"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2019 09:12:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxapi-com-2-files-upload-response-object-missing-the-item/m-p/283851#M17380</guid>
      <dc:creator>elsigh</dc:creator>
      <dc:date>2019-05-29T09:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: dropboxapi.com/2/files/upload response object missing the item `.tag` key/value</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxapi-com-2-files-upload-response-object-missing-the-item/m-p/283941#M17385</link>
      <description>&lt;P&gt;This is working as expected. &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;The&amp;nbsp;/2/files/list_folder endpoint returns a List of Metadata&lt;/A&gt;. Metadata is a datatype with subtypes that can be any of: FileMetadata, FolderMetadata, DeletedMetadata. The '.tag' identifies the subtype.&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;The&amp;nbsp;/2/files/upload endpoint only returns a&amp;nbsp;FileMetadata&lt;/A&gt;, so no '.tag' is needed or returned.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When uploading using&amp;nbsp;/2/files/upload, you should only supply &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;the documented parameters&lt;/A&gt;. If something goes wrong, you'll get an error response, such as the 409 you mentioned, in which case you should check the response body, as it will contain a more useful error message.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 16:48:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dropboxapi-com-2-files-upload-response-object-missing-the-item/m-p/283941#M17385</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-10T16:48:15Z</dc:date>
    </item>
  </channel>
</rss>

