<?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: Set the timeout to close the chooser after few seconds of selecting the files or in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601464#M2669</link>
    <description>Thankyou, I got it but is there any option to close it? or hide it? If there is no options then I have different approach for that but just wants to know if there is any option to close or hide.</description>
    <pubDate>Mon, 06 Jun 2022 03:36:52 GMT</pubDate>
    <dc:creator>Ashrafali</dc:creator>
    <dc:date>2022-06-06T03:36:52Z</dc:date>
    <item>
      <title>Set the timeout to close the chooser after few seconds of selecting the files or</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601419#M2667</link>
      <description>&lt;P&gt;Once user choose the files and click the submit button in web application dropbox chooser I'm downloading the files in my backend by calling ajax function in success option of the chooser, if the file is too large then the chooser stays open for few minutes (even after user selects and submit the files) untill the whole video gets downloaded in backend, is there any option to close the popup of chooser after few seconds, so that download continue in the background and user will not be confused that why the webpage is stuck.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 17:43:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601419#M2667</guid>
      <dc:creator>Ashrafali</dc:creator>
      <dc:date>2022-06-07T17:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set the timeout to close the chooser after few seconds of selecting the files or</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601453#M2668</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1546935"&gt;@Ashrafali&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;..., if the file is too large then the chooser stays open ...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1546935"&gt;@Ashrafali&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Do you perform file operations in chooser's callback or let it return before (or immediately after) start processing? 🧐 Take in mind that chooser will stay blocked as much as you block it's execution within the callback. &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; Make your processing little more asynchronous.&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2022 22:16:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601453#M2668</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-05T22:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set the timeout to close the chooser after few seconds of selecting the files or</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601464#M2669</link>
      <description>Thankyou, I got it but is there any option to close it? or hide it? If there is no options then I have different approach for that but just wants to know if there is any option to close or hide.</description>
      <pubDate>Mon, 06 Jun 2022 03:36:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601464#M2669</guid>
      <dc:creator>Ashrafali</dc:creator>
      <dc:date>2022-06-06T03:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set the timeout to close the chooser after few seconds of selecting the files or</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601577#M2671</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1546935"&gt;@Ashrafali&lt;/a&gt; No, there isn't an option to close or hide it explicitly. It will automatically close. As Здравко said, it sounds like the issue here is that you're blocking the callback. You should move your operations out of the callback as they said, so that it will automatically close quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 15:14:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601577#M2671</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-06T15:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set the timeout to close the chooser after few seconds of selecting the files or</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601585#M2672</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1546935"&gt;@Ashrafali&lt;/a&gt;, I'm wrong in my previous post. Seems 'success' callback is called asynchronously. That's why it can't stop/delay chooser disappearance.&lt;/P&gt;&lt;P&gt;To be honest I can't reproduce your issue. &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; Can you share some code sniped representing it?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 16:23:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601585#M2672</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-06T16:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set the timeout to close the chooser after few seconds of selecting the files or</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601592#M2673</link>
      <description>&lt;P&gt;For reference, I can reproduce this, but only in some browsers (e.g., Chrome but not Firefox), so there seems to be some browser-specific implementation details that affect this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, it still sounds like the right solution here is to move the long work out of the callback.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 16:51:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601592#M2673</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-06T16:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set the timeout to close the chooser after few seconds of selecting the files or</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601606#M2674</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;In any case, it still sounds like the right solution here is to move the long work out of the callback.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, one simple "fix" (might not be the best in all cases) can be replace function declaration like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;success: function(files) {&lt;/LI-CODE&gt;&lt;P&gt;to something like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;success: async function(files) {&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;And yes, on Firefox it works with and without 'async'. I hope it will work on Chrome too (haven't tested it yet).&lt;/P&gt;&lt;P&gt;Good luck &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1546935"&gt;@Ashrafali&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 17:41:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Set-the-timeout-to-close-the-chooser-after-few-seconds-of/m-p/601606#M2674</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-06T17:41:32Z</dc:date>
    </item>
  </channel>
</rss>

