<?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: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox. in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/633301#M29216</link>
    <description>&lt;P&gt;Can you clarify what happens when it "pauses the upload process after certain time"? For instance, do you get any error/output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also when you say you upload a "large number of photos/files", how many are you uploading simultaneously?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 14:12:18 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-11-01T14:12:18Z</dc:date>
    <item>
      <title>File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/633110#M29215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have an iOS objective c app with dropbox sdk integrated.&lt;/P&gt;
&lt;P&gt;The app uploads large number of photos/files from local app storage to dropbox folder.&lt;/P&gt;
&lt;P&gt;When we start the upload process it uploads almost 40-45 images/files for example and pauses the upload process after certain time.&lt;/P&gt;
&lt;P&gt;We need to close the app and relaunch the app again so that the upload process starts again syncs the remaining files to the dropbox.&lt;/P&gt;
&lt;P&gt;We are using following upload code specified in the dropbox documentation.&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;NSData *fileData = [@"file data example" dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:NO];

// For overriding on upload
DBFILESWriteMode *mode = [[DBFILESWriteMode alloc] initWithOverwrite];

[[[client.filesRoutes uploadData:@"/test/path/in/Dropbox/account/my_output.txt"
                            mode:mode
                      autorename:@(YES)
                  clientModified:nil
                            mute:@(NO)
                  propertyGroups:nil
                       inputData:fileData]
    setResponseBlock:^(DBFILESFileMetadata *result, DBFILESUploadError *routeError, DBRequestError *networkError) {
      if (result) {
        NSLog(@"%@\n", result);
      } else {
        NSLog(@"%@\n%@\n", routeError, networkError);
      }
    }] setProgressBlock:^(int64_t bytesUploaded, int64_t totalBytesUploaded, int64_t totalBytesExpectedToUploaded) {
  NSLog(@"\n%lld\n%lld\n%lld\n", bytesUploaded, totalBytesUploaded, totalBytesExpectedToUploaded);
}];&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please let us know what could be the issues and is there any fix for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 09:53:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/633110#M29215</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-01T09:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/633301#M29216</link>
      <description>&lt;P&gt;Can you clarify what happens when it "pauses the upload process after certain time"? For instance, do you get any error/output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also when you say you upload a "large number of photos/files", how many are you uploading simultaneously?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 14:12:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/633301#M29216</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-01T14:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/633366#M29220</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;, we have a system where in we upload almost 100-150 images/files at a time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With regards to error message, we sometimes get upload timeout from dropbox and sometimes it just pauses without going to error block.&lt;/P&gt;&lt;P&gt;So not really sure what is causing the issue. dropbox sdk has mentioned in the documentation that iOS wont stop the upload/download process and there is no timeout.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 17:57:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/633366#M29220</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-01T17:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/633374#M29221</link>
      <description>&lt;P&gt;Uploading 100-150 files at the same may exhaust the system or network connection, as each one requires its own HTTPS request. I recommend limiting how many you perform simultaneously. You may want to experiment a bit to see what a good limit is for your scenario/environment.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 18:29:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/633374#M29221</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-01T18:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634316#M29277</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;, I tested the app several times.&lt;/P&gt;&lt;P&gt;As per my investigation the issue is it goes into error block for few upload requires(out of all) with timeout error when trying to upload so many files in a loop at once.&lt;/P&gt;&lt;P&gt;Is there any solution provide by Dropbox SDK for this other than limiting the number of files/requests to upload at a time?&lt;/P&gt;&lt;P&gt;Let me know soon.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 18:27:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634316#M29277</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-04T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634320#M29278</link>
      <description>&lt;P&gt;The Dropbox Objective-C SDK does offer a 'batchUploadFiles' method that you may want to use instead: &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c#upload-style-request" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c#upload-style-request&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 18:51:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634320#M29278</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-04T18:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634323#M29279</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Key moment, when multiple uploads are performing simultaneous, is high probability different uploads to stuck on catching GIL (leading to issues). You can decrease such probability as &lt;A title="Upload sessions allow you to upload a single file in one or more requests" href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start" target="_blank" rel="noopener"&gt;make upload&lt;/A&gt; itself and attach file to the folder tree (only the attach actually needs GIL catch) in 2 different steps, so many uploads can happen simultaneous without risk for conflict and &lt;A title="Commit many files at once into a user's Dropbox" href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch" target="_blank" rel="noopener"&gt;finalization of all files&lt;/A&gt; can happen at once. &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 helps.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 19:00:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634323#M29279</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-04T19:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634336#M29280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;, I tried the Batch method before and it still goes to timeout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;, thanks for the advise but this approach isn't feasible for our scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess we need to handle this from our end with our own logic.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 19:45:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634336#M29280</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-04T19:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634343#M29281</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;..., thanks for the advise but this approach isn't feasible for our scenario. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&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;🤷 Why? 🧐&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I guess we need to handle this from our end with our own logic.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What kind of logic is in use currently and is something prevent it to be used further?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every upload is performed on 2 steps (as I mentioned) - actual upload and attach to directory tree. The way you are using performs both steps at once. This is convenient for single (or few) upload. For many (and/or big) files alternatives can be useful. In all cases upload is performed in the same way, just different way of organizing.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 20:14:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634343#M29281</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-04T20:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634352#M29282</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;, So how should be the upload code for iOS objective c to dropbox api?&lt;/P&gt;&lt;P&gt;currently I am using the above in loop for multiple files.&lt;/P&gt;&lt;P&gt;We need files(not as another folder) to be uploaded in a specific folder in dropbox. These files are processed by another application from there.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 20:39:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634352#M29282</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-04T20:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634361#M29283</link>
      <description>&lt;P&gt;Take a look &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/blob/master/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.h#L3098" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for start a session possible variant (or &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/blob/master/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.h#L3030" target="_blank" rel="noopener"&gt;here&lt;/A&gt; if you prefer data upload). &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/blob/master/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.h#L2901" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; you can see finalization for multiple sessions.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 21:55:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-upload-to-dropbox-timeout-pauses-after-certain-time/m-p/634361#M29283</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-04T21:55:22Z</dc:date>
    </item>
  </channel>
</rss>

