<?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: Upload progress Nodejs API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229438#M12459</link>
    <description>&lt;P&gt;Hello Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you for your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I will implement that in my application, it also looks safer than 1 file upload.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Théophile&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2017 08:00:59 GMT</pubDate>
    <dc:creator>theophilepace</dc:creator>
    <dc:date>2017-06-27T08:00:59Z</dc:date>
    <item>
      <title>Upload progress Nodejs API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229103#M12434</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using your API to upload different kind of file through nodeJs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw a lot of people explaining the API currently do not support progress bars and monitoring stuff so I've tried to create a workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've implemented this method :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;monitorTransfer(dbx, fileName, totalSize) {
    console.log('monitoring')
    if (this.continueMonitoring) {
      dbx.filesListFolder({ path: "" }).then((data) =&amp;gt; {
        const fileMetadata = data.entries.filter(f =&amp;gt; f.name == fileName)
        console.log(fileMetadata)
        // console.log(`uploaded ${fileMetadata.size} on ${totalSize} ==&amp;gt; ${fileMetadata.size / totalSize} %`)
        setTimeout(this.monitorTransfer.bind(this), 500, dbx, fileName, totalSize, continueMonitoring)
      })
      .catch((err) =&amp;gt; {
        console.log(`[dropboxConnector] error monitoring : `)
        console.log(err)
        setTimeout(this.monitorTransfer.bind(this), 500, dbx, fileName, totalSize)
      })
    }
  }&lt;/PRE&gt;&lt;P&gt;I call it every 500 ms until the transfer is over. I have the following problem:&amp;nbsp;&lt;/P&gt;&lt;P&gt;my file only appears once the transfer is completed :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;monitoring
[]
monitoring
[]
monitoring
[]
monitoring
[]
monitoring
[]
monitoring
[]
monitoring
[ { '.tag': 'file',
    name: 'zouzou-test.js',
    path_lower: '/zouzou-test.js',
    path_display: '/zouzou-test.js',
    id: 'id:WW00APcl7lAAAAAAAAAAPQ',
    client_modified: '2017-06-24T16:28:41Z',
    server_modified: '2017-06-24T16:28:41Z',
    rev: '6458a6c857',
    size: 144256468,
    content_hash: '8968034036d4dd13a8b7ea090245585403a37c2db5386dff6c80da3b00d0c137' } ]&lt;/PRE&gt;&lt;P&gt;Is there someway to detect my file before the transfer is over? How can I make this work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am OK with using chunk transfer if it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Théophile&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229103#M12434</guid>
      <dc:creator>theophilepace</dc:creator>
      <dc:date>2019-05-29T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Upload progress Nodejs API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229201#M12441</link>
      <description>No, unfortunately there isn't a good solution here. The filesListFolder call will only return the newly uploaded file once it finishes uploading. The API doesn't offer information on uploads that are in progress.&lt;BR /&gt;&lt;BR /&gt;I'll send this along as a feature request for a way to receive progress information for uploads.</description>
      <pubDate>Sun, 25 Jun 2017 20:42:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229201#M12441</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-25T20:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Upload progress Nodejs API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229249#M12445</link>
      <description>&lt;P&gt;Hello Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the information. Well, that would be a really good feature to implement, especially for long transfers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anyway or workaround to get an estimation or something ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 08:02:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229249#M12445</guid>
      <dc:creator>theophilepace</dc:creator>
      <dc:date>2017-06-26T08:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Upload progress Nodejs API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229359#M12451</link>
      <description>One alternative would be to switch to using "upload sessions", where you upload files in pieces. You could then keep track of how much you've uploaded between each piece:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUploadSessionStart" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUploadSessionStart&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUploadSessionAppendV2" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUploadSessionAppendV2&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUploadSessionFinish" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUploadSessionFinish&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;That's a good bit more work though. Otherwise, I'm afraid I don't have a workaround to offer.</description>
      <pubDate>Mon, 26 Jun 2017 21:00:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229359#M12451</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-26T21:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Upload progress Nodejs API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229438#M12459</link>
      <description>&lt;P&gt;Hello Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you for your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I will implement that in my application, it also looks safer than 1 file upload.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Théophile&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 08:00:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-progress-Nodejs-API/m-p/229438#M12459</guid>
      <dc:creator>theophilepace</dc:creator>
      <dc:date>2017-06-27T08:00:59Z</dc:date>
    </item>
  </channel>
</rss>

