<?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: questRe: too many write operations when uploading files in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355138#M20280</link>
    <description>&lt;P&gt;When I am going to need this append option anyways?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you mean if the file is bigger, I first send some of its kbs and then some of the others?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case I have a 2MB file? Can I send it once in the first upload session start request. and then Should I still need to do the append? or not?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 06:52:01 GMT</pubDate>
    <dc:creator>ijunaid8989</dc:creator>
    <dc:date>2019-07-15T06:52:01Z</dc:date>
    <item>
      <title>too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/352967#M20191</link>
      <description>&lt;P&gt;I am using Elixir wrapper to DropboxAPI to upload files, which is doing simple upload using `files/upload` route.&lt;/P&gt;&lt;PRE&gt;  def upload(client, path, file, mode \\ "add", autorename \\ true, mute \\ false) do
    dropbox_headers = %{
      :path =&amp;gt; path,
      :mode =&amp;gt; mode,
      :autorename =&amp;gt; autorename,
      :mute =&amp;gt; mute
    }

    headers = %{
      "Dropbox-API-Arg" =&amp;gt; Poison.encode!(dropbox_headers),
      "Content-Type" =&amp;gt; "application/octet-stream"
    }

    upload_request(
      client,
      Application.get_env(:elixir_dropbox, :upload_url),
      "files/upload",
      file,
      headers
    )
  end&lt;/PRE&gt;&lt;P&gt;But I am having an issue lately while uploading so many files parallelly, I am getting an error as `too many write operations`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been reading and looking into&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start" target="_blank" rel="noopener"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am not following it totally, What I read from it, I can upload multiple files in one session, When I start a session while uploading one file, I think it works for sending chunks of a single file not, different files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch" target="_blank" rel="noopener"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;says, &lt;STRONG&gt;This route helps you commit many files at once into a user's Dropbox.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how?? How I can send multiple files to Dropbox account not&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 06:20:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/352967#M20191</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-02T06:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/353101#M20194</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/reference/data-ingress-guide" target="_self"&gt;data ingress guide&lt;/A&gt; should be of some help here. Specifically, there are some instructions towards the bottom that explain how to handle many files in parallel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll paraphrase a bit here:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Organize files into batches of under 1,000&lt;/LI&gt;
&lt;LI&gt;Call the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start" target="_self"&gt;files/upload_session/start&lt;/A&gt; endpoint once per file&lt;/LI&gt;
&lt;LI&gt;Call the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append" target="_self"&gt;files/upload_session/append_v2&lt;/A&gt; endpoint as needed for each file&lt;/LI&gt;
&lt;LI&gt;The &lt;EM&gt;last&lt;/EM&gt;&amp;nbsp;call to files/upload_session/append_v2 for each file&amp;nbsp;&lt;STRONG&gt;must&lt;/STRONG&gt; contain a `close: true` parameter&lt;/LI&gt;
&lt;LI&gt;Call the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch" target="_self"&gt;files/upload_session/finish_batch&lt;/A&gt; endpoint to commit the files.&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;Note: you may need to call this multiple times if you're doing more than 1,000 files or you'll run into the lock contention issue again.&lt;/LI&gt;
&lt;LI&gt;This will return an `async_job_id`. You can use that to check the status of your upload with the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch-check" target="_self"&gt;files/upload_session/finish_batch/check&lt;/A&gt; endpoint.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope that helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 13:40:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/353101#M20194</guid>
      <dc:creator>TaylorKrusen</dc:creator>
      <dc:date>2019-07-10T13:40:05Z</dc:date>
    </item>
    <item>
      <title>questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354336#M20234</link>
      <description>&lt;P&gt;Okay I have few questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to organize files into batches of under 1000? like is there any structure for it? which is not written in documentation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;and how you can pas that batch of files to the endpoint?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I made a new client with the access token&lt;/P&gt;&lt;PRE&gt;iex(3)&amp;gt; client = ElixirDropbox.Client.new("PWK08cePo_kAAAAAAAB2oRsQSyG")
%ElixirDropbox.Client{
access_token: "PWK08cePo_kAAAAAAAB2oRsQSyG"
}&lt;/PRE&gt;&lt;P&gt;and uploaded a file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;iex(4)&amp;gt; ElixirDropbox.Files.UploadSession.start(client, false, "mix.lock")
%{"session_id" =&amp;gt; "AAAAAAAYclutwUwG5odRew"}&lt;/PRE&gt;&lt;P&gt;with close: false,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;iex(5)&amp;gt; ElixirDropbox.Files.UploadSession.append(client, "AAAAAAAYclutwUwG5odRew", false, "mix.exs")
{{:status_code, 409},
 {:ok,
  %{
    "error" =&amp;gt; %{".tag" =&amp;gt; "incorrect_offset", "correct_offset" =&amp;gt; 18597},
    "error_summary" =&amp;gt; "incorrect_offset/."
  }}}&lt;/PRE&gt;&lt;P&gt;I uploaded another file now, with the session id, and it gave me error as above?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the proper way of sending the batches of files?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start&lt;/A&gt; I don't see any such information here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 10:05:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354336#M20234</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-10T10:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354374#M20238</link>
      <description>&lt;P&gt;To clarify a bit, you need one "upload session" per file. Each upload session gets its own session ID. When adding data to a single upload session, you need to identify how much you've already added to that upload session by using the "offset" value. This helps make sure you're uploading the right pieces. If you specify the wrong current offset for an upload session, you'll get that "incorrect_offset" error.&lt;/P&gt;
&lt;P&gt;You can then "finish" up to 1000 files together (i.e., up to 1000 upload sessions) using&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch" target="_self"&gt;/2/files/upload_session/finish_batch&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Check &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch" target="_self"&gt;the /2/files/upload_session/finish_batch documentation&lt;/A&gt;&amp;nbsp;for information on how to format the parameters for it. Be sure to click on "UploadSessionFinishArg", and so on, to expand the documentation for the nested fields.&lt;/P&gt;
&lt;P&gt;I also&amp;nbsp;recommend using &lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_upload_session/finish_batch" target="_self"&gt;the API v2 Explorer&lt;/A&gt; to help guide you in understanding how to build the parameters. Click the "Add" button to add an entry and fill in the fields, for instance, and then click "Show Code" to see what the resulting code would be for the call.&lt;/P&gt;
&lt;P&gt;I don't believe we have a sample for using upload sessions with /2/files/upload_session/finish_batch, but there are some examples of just using upload sessions (with some of the SDKs) here, which should be a good starting point for the logic:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/upload-file/src/main/java/com/dropbox/core/examples/upload_file/Main.java#L103" target="_self"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/upload-file/src/main/java/com/dropbox/core/examples/upload_file/Main.java#L103&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L436" target="_self"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L436&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 10 Jul 2019 13:47:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354374#M20238</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-07-10T13:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354566#M20251</link>
      <description>&lt;P&gt;So at first, I ran this in the command line&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload_session/start \
    --header "Authorization: Bearer PWK08cePo_kAAAAAAAB2oRsQSyGQbQ2qy-SC69zC7G" \
    --header "Dropbox-API-Arg: {\"close\": false}" \
    --header "Content-Type: application/octet-stream" \
    --data-binary @local_file.txt&lt;/PRE&gt;&lt;P&gt;It returned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"session_id": "AAAAAAAbQhipmPJOosGS-Q"}&lt;/PRE&gt;&lt;P&gt;I don't see any offset values here but let's take a look at next request of append.&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;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload_session/append_v2 \
    --header "Authorization: Bearer C69zip6zi9bwHgqhYHNYQbrpZ5C7G" \
    --header "Dropbox-API-Arg: {\"cursor\": {\"session_id\": \"AAAAAAAbQhipmPJOosGS-Q\",\"offset\": 0},\"close\": false}" \
    --header "Content-Type: application/octet-stream" \
    --data-binary @local_file.txt&lt;/PRE&gt;&lt;P&gt;It returned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"error_summary": "incorrect_offset/.", "error": {".tag": "incorrect_offset", "correct_offset": 37}}&lt;/PRE&gt;&lt;P&gt;Now I sent the offset value 37 and it gave me null as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload_session/append_v2     --header "Authorization: Bearer SC69zip6zi9bwHgqhYHNYQbrpZ5C7G"     --header "Dropbox-API-Arg: {\"cursor\": {\"session_id\": \"AAAAAAAbQhipmPJOosGS-Q\",\"offset\": 37},\"close\": false}"     --header "Content-Type: application/octet-stream"     --data-binary @local_file.txt&lt;/PRE&gt;&lt;P&gt;it returned: `null`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I did finish_batch,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/upload_session/finish_batch \
&amp;gt;     --header "Authorization: Bearer SC69zip6zi9bwHgqhYHNYQbrpZ5C7G" \
&amp;gt;     --header "Content-Type: application/json" \
&amp;gt;     --data "{\"entries\": [{\"cursor\": {\"session_id\": \"AAAAAAAbQhipmPJOosGS-Q\",\"offset\": 0},\"commit\": {\"path\": \"/Homework/math/Matrices.txt\",\"mode\": \"add\",\"autorename\": true,\"mute\": false,\"strict_conflict\": false}}]}"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It returned to me with async_job_id,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{".tag": "async_job_id", "async_job_id": "dbjid:AACkTPVL8VvaGyrUdEPui0uHg-mzJuroOoZ5yQvP3HB-4JxhpBGNlRrt8XOH6XiOJIpUKlNjUbHtJgUPGWKhQnXm"}&lt;/PRE&gt;&lt;P&gt;on the batch check,&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;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/upload_session/finish_batch/check     --header "Authorization: Bearer SC69zip6zi9bwHgqhYHNYQbrpZ5C7G"     --header "Content-Type: application/json"     --data "{\"async_job_id\": \"dbjid:AACkTPVL8VvaGyrUdEPui0uHg-mzJuroOoZ5yQvP3HB-4JxhpBGNlRrt8XOH6XiOJIpUKlNjUbHtJgUPGWKhQnXm\"}&lt;/PRE&gt;&lt;P&gt;It returned as&lt;/P&gt;&lt;PRE&gt;{".tag": "complete", "entries": [{".tag": "failure", "failure": {".tag": "lookup_failed", "lookup_failed": {".tag": "incorrect_offset", "correct_offset": 74}}}]}&lt;/PRE&gt;&lt;P&gt;My question is, from where I can have the offset value? its nowhere from the very start?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I followed the complete documentation guide, and I am not able to even upload one file with upload session.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 12:53:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354566#M20251</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-11T12:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354593#M20253</link>
      <description>&lt;P&gt;The 'offset' value is "The amount of data that has been uploaded so far. We use this to make sure upload data isn't lost or duplicated in the event of a network error.".&lt;/P&gt;
&lt;P&gt;That is to say, it should be the number of bytes that you have already uploaded so far for that particular upload session. You should keep track of this client-side as you send the file data up to Dropbox.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:02:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354593#M20253</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-07-11T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354793#M20264</link>
      <description>&lt;P&gt;Okay thanks now,&amp;nbsp;&lt;/P&gt;&lt;P&gt;on&amp;nbsp;upload_session/start and then doing&amp;nbsp;upload_session/finish&lt;/P&gt;&lt;P&gt;my file is getting uploaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the file was of 37 kbs. which I set in offset in&amp;nbsp;upload_session/finish, but&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how&amp;nbsp;upload_session/finish_batch can over all the present sessions? when it only takes one session id? and one one file name?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can now upload the file to my account using only&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;upload_session/start&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;upload_session/finish&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would that be enough ? for uploading multiple files at once? to dropbox?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am actually in a loop which being spawned and sending files to dropbox account.&lt;/P&gt;&lt;P&gt;Now I only need to so session start and in the finish add the file size and that it? would that stop sending me too many write operations message?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 11:23:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354793#M20264</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-12T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354803#M20265</link>
      <description>&lt;P&gt;and If I can the append_v2 with close true, it gives me error as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;double the offset, it should be, file as 37KBs and it gives an error as offset should be 74&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 12:14:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354803#M20265</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-12T12:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354852#M20270</link>
      <description>&lt;P&gt;If you want to commit multiple file uploads at once, and avoid the you should use&amp;nbsp;/2/files/upload_session/finish_batch. That endpoint does not only take a single file name/upload session ID. Its UploadSessionFinishBatchArg.entries parameter takes a list of multiple&amp;nbsp;UploadSessionFinishArg. You can find information on that in the documentation here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It says "List of (UploadSessionFinishArg, max_items=1000)", indicating that you can supply up to 1000 per call. Each&amp;nbsp;UploadSessionFinishArg should contain the information for a single file and upload session.&lt;/P&gt;
&lt;P&gt;When appending data to an upload session, you shouldn't repeatedly send the same data if it's already been successfully sent.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 14:56:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/354852#M20270</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-07-12T14:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355138#M20280</link>
      <description>&lt;P&gt;When I am going to need this append option anyways?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you mean if the file is bigger, I first send some of its kbs and then some of the others?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case I have a 2MB file? Can I send it once in the first upload session start request. and then Should I still need to do the append? or not?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 06:52:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355138#M20280</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-15T06:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355148#M20281</link>
      <description>&lt;P&gt;Also I can send data only through upload session start and finish..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finish batch never worked for me to upload all data at once.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 07:21:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355148#M20281</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-15T07:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355255#M20291</link>
      <description>&lt;P&gt;Each of the /start, /append, and /finish endpoints, but not /finish_batch, can accept file data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need to use /append if there is more data than you can send in the /start and /finish requests.&lt;/P&gt;
&lt;P&gt;Upload sessions work by having you send only a portion of the file's data per request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exactly how much data you send per request is up to you. For example, a maximum of 8 MB per request is reasonable, but it can vary by use case. So, if you were using a maximum of 8 MB per request, and the file is only 2 MB, you would only need a single /start request to send all of the file data (and wouldn't need to call /append for that particular file). You could then use /finish without sending any more data to commit that file, or use /finish_batch to commit that file (as well as others).&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:50:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355255#M20291</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-07-15T15:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355371#M20294</link>
      <description>&lt;P&gt;Okay thanks for all your help and replies, right now what I am doing is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    client = ElixirDropbox.Client.new(System.get_env["DROP_BOX_TOKEN"])
    {:ok, file_size} = get_file_size(image_path)
    %{"session_id" =&amp;gt; session_id} = ElixirDropbox.Files.UploadSession.start(client, false, image_path)
    ElixirDropbox.Files.UploadSession.finish(client, session_id, upload_image_path, image_path, file_size) |&amp;gt; handle_upload_response&lt;/PRE&gt;&lt;P&gt;I still got one error as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"error_summary\": \"too_many_write_operations/\", \"error\": {\"reason\": {\".tag\": \"too_many_write_operations\"&lt;/PRE&gt;&lt;P&gt;and 5 errors are API timed out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea why still there is too many write operations error? where as I am right now first starting the session, then finishing it in a proper way?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;but these requests almost goes in parallel, should I need to change something as well? more..&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 05:59:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355371#M20294</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-16T05:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355506#M20301</link>
      <description>&lt;P&gt;In this code I see you're using the 'finish' method, presumably once per file, to finish the uploads. If you send off multiple of these at the same time, you will cause lock contention.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should use a single 'finish_batch' to finish multiple file uploads in a single call to avoid this. (Or, only send the multiple 'finish' calls one at a time.)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 17:55:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355506#M20301</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-07-16T17:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355903#M20322</link>
      <description>&lt;P&gt;I uploaded using session start and I got an session_id.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AAAAAAAb0vwx3ypjoH836Q&lt;/PRE&gt;&lt;P&gt;and then instead of doing append I just finished the batch of this file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/upload_session/finish_batch \
    --header "Authorization: Bearer -SC69zip6zi9bwHgqhYHNYQbrpZ5C7G" \
    --header "Content-Type: application/json" \
    --data "{\"entries\": [{\"cursor\": {\"session_id\": \"AAAAAAAb0vwx3ypjoH836Q\",\"offset\": 34520},\"commit\": {\"path\": \"/REGULAR/licence\",\"mode\": \"add\",\"autorename\": true,\"mute\": false,\"strict_conflict\": false}}]}"&lt;/PRE&gt;&lt;P&gt;This gave me results as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{".tag": "async_job_id", "async_job_id": "dbjid:AACg_hehcOljTPYxh6wQhigGQhtc3-eCFneDKK--vzA5V9wBLNi74iNeNqWUQDFOnx1_k-sViaZJpJvXRG0UTlLw"}&lt;/PRE&gt;&lt;P&gt;and whereas on normal session start and finish I just get the file uploaded moreover&amp;nbsp; when I check batch&amp;nbsp; as&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/upload_session/finish_batch/check \
&amp;gt;     --header "Authorization: Bearer -SC69zip6zi9bwHgqhYHNYQbrpZ5C7G" \
&amp;gt;     --header "Content-Type: application/json" \
&amp;gt;     --data "{\"async_job_id\": \"dbjid:AACg_hehcOljTPYxh6wQhigGQhtc3-eCFneDKK--vzA5V9wBLNi74iNeNqWUQDFOnx1_k-sViaZJpJvXRG0UTlLw\"}"&lt;/PRE&gt;&lt;P&gt;it returns as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{".tag": "complete", "entries": [{".tag": "failure", "failure": {".tag": "lookup_failed", "lookup_failed": {".tag": "not_closed"}}}]}&lt;/PRE&gt;&lt;P&gt;So now where I am wrong? the same file is getting uploaded through session start and finish but giving the error in this way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 10:42:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355903#M20322</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-18T10:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355947#M20326</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1180447"&gt;@ijunaid8989&lt;/a&gt;&amp;nbsp;All of the upload sessions that you wish to finish using /finish_batch need to be "closed" before you call /finish_batch. That message is indicating that the upload session was not closed.&lt;/P&gt;
&lt;P&gt;You should close the upload session with the last call you make to upload the final data for that upload session, whether that's on /start or /append, using the "close" parameter.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 14:50:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/355947#M20326</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-07-18T14:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/357068#M20380</link>
      <description>&lt;P&gt;Thanks for all your replies and I have fixed this issue, my only question is right now, what could be the reason for timeouts from dropbox api?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have timeout errors a few, while upload session start.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 05:09:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/357068#M20380</guid>
      <dc:creator>ijunaid8989</dc:creator>
      <dc:date>2019-07-25T05:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: questRe: too many write operations when uploading files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/357146#M20381</link>
      <description>&lt;P&gt;Can you share the code and error output you're getting for these timeouts so we can take a look? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 14:45:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/too-many-write-operations-when-uploading-files/m-p/357146#M20381</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-07-25T14:45:30Z</dc:date>
    </item>
  </channel>
</rss>

