<?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: Correct way of uploading files in session? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-of-uploading-files-in-session/m-p/214144#M10943</link>
    <description>Yes, you'll need to call uploadSessionStart once for every file you want to upload. &lt;BR /&gt;&lt;BR /&gt;If you need to upload multiple files, you can use uploadSessionFinishBatch to commit them together, but whether or not you use the batch version, you'll need to call uploadSessionStart once per file. (For reference, using uploadSessionFinishBatch is recommended when uploading multiple files at once.)&lt;BR /&gt;&lt;BR /&gt;Also, note that in my basic example in that GitHub issue, I was just uploading small pieces of data as an example, so I could "close" each session in uploadSessionStart, and didn't need to call filesUploadSessionAppendv2 at all. In a real implementation, you would call filesUploadSessionAppendv2 when necessary to upload more data (e.g., when the file is larger) and only "close" it on the last filesUploadSessionAppendv2&amp;nbsp;call for each file.&lt;BR /&gt;&lt;BR /&gt;There's a data ingress guide here that should be helpful:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/reference/data-ingress-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/data-ingress-guide&lt;/A&gt;</description>
    <pubDate>Fri, 31 Mar 2017 14:46:10 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-03-31T14:46:10Z</dc:date>
    <item>
      <title>Correct way of uploading files in session?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-of-uploading-files-in-session/m-p/214088#M10933</link>
      <description>&lt;P&gt;Somethimes&amp;nbsp;i get error too many write operations when uploading multiple small files at once.&lt;BR /&gt;So I decided to upload them in session. But I can't seem to find the correct example of uploading.&lt;BR /&gt;In documentation it says&amp;nbsp;&lt;U&gt;UploadSessionStartArg.close or UploadSessionAppendArg.close needs to be true&amp;nbsp;&lt;SPAN&gt;for the last upload_session/start or upload_session/append_v2 call.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in this example close parameter is always true&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/80#issuecomment-283189888" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/issues/80#issuecomment-283189888&lt;/A&gt;&lt;BR /&gt;And there is no usage of sessionAppend.&amp;nbsp;&lt;BR /&gt;So my question is should I use uploadSessionStart for every new file I am uploading, like in example above?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-of-uploading-files-in-session/m-p/214088#M10933</guid>
      <dc:creator>AlexBrajkovic</dc:creator>
      <dc:date>2019-05-29T09:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Correct way of uploading files in session?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-of-uploading-files-in-session/m-p/214144#M10943</link>
      <description>Yes, you'll need to call uploadSessionStart once for every file you want to upload. &lt;BR /&gt;&lt;BR /&gt;If you need to upload multiple files, you can use uploadSessionFinishBatch to commit them together, but whether or not you use the batch version, you'll need to call uploadSessionStart once per file. (For reference, using uploadSessionFinishBatch is recommended when uploading multiple files at once.)&lt;BR /&gt;&lt;BR /&gt;Also, note that in my basic example in that GitHub issue, I was just uploading small pieces of data as an example, so I could "close" each session in uploadSessionStart, and didn't need to call filesUploadSessionAppendv2 at all. In a real implementation, you would call filesUploadSessionAppendv2 when necessary to upload more data (e.g., when the file is larger) and only "close" it on the last filesUploadSessionAppendv2&amp;nbsp;call for each file.&lt;BR /&gt;&lt;BR /&gt;There's a data ingress guide here that should be helpful:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/reference/data-ingress-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/data-ingress-guide&lt;/A&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:46:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Correct-way-of-uploading-files-in-session/m-p/214144#M10943</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-31T14:46:10Z</dc:date>
    </item>
  </channel>
</rss>

