<?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 an upload error - not sure why in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624392#M28877</link>
    <description>&lt;P&gt;When I revert to the code I have above I get the following compile error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No visible @interface for 'DBFILESUserAuthRoutes' declares the selector 'uploadData:mode:autorename:clientModified:mute:inputData:'&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 15:28:44 GMT</pubDate>
    <dc:creator>purringpigeon</dc:creator>
    <dc:date>2022-09-22T15:28:44Z</dc:date>
    <item>
      <title>Getting an upload error - not sure why</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624237#M28855</link>
      <description>&lt;P&gt;I recently ran into the issue of the long lived tokens no longer working, so I needed to upgrade to the latest API and change the access. I am now running into an exception uploading content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My old upload code was this (and nested other uploads if the first was successful), but this API was no longer present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DBFILESWriteMode* mode = [[DBFILESWriteMode alloc]initWithOverwrite];
[[self.restClient.filesRoutes uploadData:@"/ServiceReport.sqlite"
                    mode:mode
                    autorename: NULL
                    clientModified:NULL
                    mute:NULL
                    inputData:sqllite]setResponseBlock:^(DBFILESFileMetadata * _Nullable result , DBFILESUploadError * _Nullable routeError, DBRequestError * _Nullable error) {
//repeat for each file to upload......
}];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I replaced with what seemed like the correct replacement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[[self.restClient.filesRoutes uploadData: @"/ServiceReport.sqlite"inputData:sqllite] setResponseBlock:^(DBFILESFileMetadata * _Nullable result , DBFILESUploadError * _Nullable routeError, DBRequestError * _Nullable error) {

//repeat for each file to upload
}];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I try this, I am getting the following error...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="purringpigeon_0-1663814212274.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/31837i8251554D7C6D61D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="purringpigeon_0-1663814212274.png" alt="purringpigeon_0-1663814212274.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am not really sure what to try next... it seems my download to restore is working just fine, it's the upload that is failing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for any pointers.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 20:34:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624237#M28855</guid>
      <dc:creator>purringpigeon</dc:creator>
      <dc:date>2022-09-22T20:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an upload error - not sure why</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624256#M28858</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/342241"&gt;@purringpigeon&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Where you have set the mode to overwrite (as in first version)? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; If missing, the behaviour is normal when file with the same name already exists. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:53:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624256#M28858</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-22T07:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an upload error - not sure why</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624366#M28866</link>
      <description>How do I set the mode? I don’t see the option on the new API.</description>
      <pubDate>Thu, 22 Sep 2022 14:15:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624366#M28866</guid>
      <dc:creator>purringpigeon</dc:creator>
      <dc:date>2022-09-22T14:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an upload error - not sure why</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624369#M28869</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/342241"&gt;@purringpigeon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How do I set the mode? I don’t see the option on the new API.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/342241"&gt;@purringpigeon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;PRE&gt;DBFILESWriteMode* &lt;U&gt;&lt;STRONG&gt;mode&lt;/STRONG&gt;&lt;/U&gt; = [[DBFILESWriteMode alloc]initWithOverwrite];
[[self.restClient.filesRoutes uploadData:@"/ServiceReport.sqlite"
                    &lt;U&gt;mode&lt;/U&gt;:&lt;U&gt;&lt;STRONG&gt;mode&lt;/STRONG&gt;&lt;/U&gt;
                    ...&lt;/PRE&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Something that's missing in you second code snippet! This part is nothing to do with the change of access token way of work. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 14:21:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624369#M28869</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-22T14:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an upload error - not sure why</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624372#M28871</link>
      <description>When I had it with mode it complained the API was not correct. I’ll try again. I’m not sure why it failed. But my old call was not compiling.</description>
      <pubDate>Thu, 22 Sep 2022 14:26:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624372#M28871</guid>
      <dc:creator>purringpigeon</dc:creator>
      <dc:date>2022-09-22T14:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an upload error - not sure why</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624376#M28872</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/342241"&gt;@purringpigeon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;... But my old call was not compiling.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's not something API related! Check what's wrong in your syntax, compiler options, etc.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 14:29:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624376#M28872</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-22T14:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an upload error - not sure why</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624388#M28876</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/342241"&gt;@purringpigeon&lt;/a&gt; Здравко is correct, you should use the "mode" option to control this behavior. That's still &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/blob/7ff66f8ed1da1db9c4921da8dad6718084c99aec/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.h#L2521" target="_blank"&gt;available in the latest version of the SDK, as seen here&lt;/A&gt;. I recommend using Xcode's autocomplete feature to automatically template out the parameters.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 15:11:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624388#M28876</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-09-22T15:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an upload error - not sure why</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624392#M28877</link>
      <description>&lt;P&gt;When I revert to the code I have above I get the following compile error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No visible @interface for 'DBFILESUserAuthRoutes' declares the selector 'uploadData:mode:autorename:clientModified:mute:inputData:'&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 15:28:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624392#M28877</guid>
      <dc:creator>purringpigeon</dc:creator>
      <dc:date>2022-09-22T15:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an upload error - not sure why</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624393#M28878</link>
      <description>&lt;P&gt;I found it - they added properties to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;propertyGroups:NULL
strictConflict:NULL
contentHash:NULL&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;I am trying that.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 15:34:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-an-upload-error-not-sure-why/m-p/624393#M28878</guid>
      <dc:creator>purringpigeon</dc:creator>
      <dc:date>2022-09-22T15:34:21Z</dc:date>
    </item>
  </channel>
</rss>

