<?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: Uploading multiple file with session Typescript in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-multiple-file-with-session-Typescript/m-p/399871#M21889</link>
    <description>&lt;P&gt;This appears to be a duplicate of &lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/Uploading-multiple-files-with-UploadSession-with-TypeScript/m-p/399797#M21878" target="_self"&gt;this thread&lt;/A&gt;, so I'll close it and follow up with you there.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 21:59:21 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-02-28T21:59:21Z</dc:date>
    <item>
      <title>Uploading multiple file with session Typescript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-multiple-file-with-session-Typescript/m-p/399799#M21879</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm facing an issue with the UploadSessionFinishBatch method with TypeScript.&lt;/P&gt;&lt;P&gt;I'm having this error :&lt;/P&gt;&lt;PRE&gt;Error in call to API function \"files/upload_session/finish_batch\": request body: entries: unknown field 'contents&lt;/PRE&gt;&lt;P&gt;It seems like the "contents" parameter is not supposed to be here and makes the call crash. But in TypeScript the contents is required.&lt;/P&gt;&lt;P&gt;In some example I found on the web I've never seen the contents parameter. Is it a problem of type due to TypeScript SDK ? Or there is something I miss ?&lt;/P&gt;&lt;P&gt;Here is the code I use&lt;/P&gt;&lt;PRE&gt;const finishUploadBatchArg: DropboxTypes.files.UploadSessionFinishBatchArg = {
      entries: [],
    }

// For each file I do : 
const response = await this.dropBox.filesUploadSessionStart(uploadSessionStartArg)
        sessionId = response.session_id
        const cursor: DropboxTypes.files.UploadSessionCursor = {
          contents: file,
          offset:file.size,
          session_id: sessionId,
        }
        const commitInfo: DropboxTypes.files.CommitInfo = {
          contents: file,
          path: filePath,
          autorename: true,
        }

        const finishSessionArg = {
          contents : file, //This one is unknown from what I understand of the error I get
          cursor: cursor,
          commit: commitInfo,
        }
        finishUploadBatchArg.entries.push(finishSessionArg)
//Then I call the finish batch method : 
const response: DropboxTypes.files.UploadSessionFinishBatchLaunch = await this.dropBox.filesUploadSessionFinishBatch(finishUploadBatchArg)&lt;/PRE&gt;&lt;P&gt;By the way all the session start goes well.&lt;/P&gt;&lt;P&gt;Can you please help me on this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 14:47:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-multiple-file-with-session-Typescript/m-p/399799#M21879</guid>
      <dc:creator>DavidM27</dc:creator>
      <dc:date>2020-02-28T14:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading multiple file with session Typescript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-multiple-file-with-session-Typescript/m-p/399871#M21889</link>
      <description>&lt;P&gt;This appears to be a duplicate of &lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/Uploading-multiple-files-with-UploadSession-with-TypeScript/m-p/399797#M21878" target="_self"&gt;this thread&lt;/A&gt;, so I'll close it and follow up with you there.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 21:59:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-multiple-file-with-session-Typescript/m-p/399871#M21889</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-02-28T21:59:21Z</dc:date>
    </item>
  </channel>
</rss>

