Forum Discussion

ijunaid8989's avatar
ijunaid8989
Explorer | Level 3
7 years ago

too many write operations when uploading files

I am using Elixir wrapper to DropboxAPI to upload files, which is doing simple upload using `files/upload` route.

  def upload(client, path, file, mode \\ "add", autorename \\ true, mute \\ false) do
    dropbox_headers = %{
      :path => path,
      :mode => mode,
      :autorename => autorename,
      :mute => mute
    }

    headers = %{
      "Dropbox-API-Arg" => Poison.encode!(dropbox_headers),
      "Content-Type" => "application/octet-stream"
    }

    upload_request(
      client,
      Application.get_env(:elixir_dropbox, :upload_url),
      "files/upload",
      file,
      headers
    )
  end

But I am having an issue lately while uploading so many files parallelly, I am getting an error as `too many write operations`

 

I have been reading and looking into https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start

 

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.

 

But https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch

 

says, This route helps you commit many files at once into a user's Dropbox.

 

But how?? How I can send multiple files to Dropbox account not 

17 Replies

Replies have been turned off for this discussion

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!