# Box.com Mult-Part Multiple Uploads

**URL:** <https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008>\
**Category:** Help and Support\
**Created:** [July 16, 2023, 4:03pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008 "2023-07-16T16:03:02Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Turner](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/22d042/32.png) [@Turner](https://forum.rclone.org/u/Turner)\
**Post date:** [July 16, 2023, 4:03pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/1 "2023-07-16T16:03:02Z")

</div>

I understand that if I'm copying say a single file, and do --transfers=50, it will do multiple multi-part uploads on that single file, and speeds up uploads significantly. This is using [box.com](http://box.com)

How would I go about upping the amount of multi-part uploads, without increasing the amount of files that are copied?  
In a folder that has say 100 files in it, and I'd like to upload say 4 at a time, but allow up to XX part uploads, what would be the options to do this? I understand this increases RAM usage. I'd rather have single files finish faster, then it working on multiple files at once.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [July 16, 2023, 4:18pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/2 "2023-07-16T16:18:41Z")

</div>

Not sure if it will work for `box` but you can try:

`rclony copy src dst --multi-thread-cutoff 100M --multi-thread-streams 10 --transfer 10 -vv`

`--multi-thread-cutoff` sets minimum file size to use multi threads and `--multi-thread-streams` defines number of streams

---

<div class="post-metadata">

**Author:** ![Turner](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/22d042/32.png) [@Turner](https://forum.rclone.org/u/Turner)\
**Post date:** [July 16, 2023, 4:25pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/3 "2023-07-16T16:25:14Z")

</div>

Thanks for the attempt! Unfortunately --multi-thread-streams did not do anything in this case.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [July 16, 2023, 4:31pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/4 "2023-07-16T16:31:35Z")

</div>

So maybe not possible for box. Maybe somebody else knows box better and have some way to do it.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [July 16, 2023, 4:53pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/5 "2023-07-16T16:53:41Z")

</div>

`--multi-thread` is for downloads only at the moment.

However box does support multipart uploads

```
 --box-upload-cutoff SizeSuffix Cutoff for switching to multipart upload (>= 50 MiB) (default 50Mi)

```

So any file bigger than 50M will be uploaded in chunks and these chunks will be uploaded concurrently. See [the box docs](https://rclone.org/box/#transfers) for more info.

If you turn on `-vv` you'll see a DEBUG message for each chunk so you can see how it works.

---

<div class="post-metadata">

**Author:** ![Turner](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/22d042/32.png) [@Turner](https://forum.rclone.org/u/Turner)\
**Post date:** [July 16, 2023, 5:10pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/6 "2023-07-16T17:10:14Z")

</div>

Thanks Nick, I believe that portion is working correctly, but when using the --transfers option, it is doing multiple files, instead of multiple pieces.

How do I limit it to upload only X amount of files at a time, but multiple pieces?

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [July 16, 2023, 5:49pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/7 "2023-07-16T17:49:33Z")

</div>

This gets so much easier if you use the template and share the information in it.

We keep guessing as what you might be doing and/or seeing.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [July 16, 2023, 5:53pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/8 "2023-07-16T17:53:18Z")

</div>

> [@Turner](#):
>
> How do I limit it to upload only X amount of files at a time, but multiple pieces?

`--transfers` controls both according to the docs. Use `--transfers 10` to send with a maximum of 10 uploads at once. So this could be 1 file split into 10 chunks uploading in parallel. Or 10 files uploading with 1 chunk in parallel.

---

<div class="post-metadata">

**Author:** ![Turner](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/22d042/32.png) [@Turner](https://forum.rclone.org/u/Turner)\
**Post date:** [July 16, 2023, 6:12pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/9 "2023-07-16T18:12:03Z")

</div>

Nick I think you're understanding now what I'm trying to do. Is there a way to force it to prioritize chunks over files?

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [July 16, 2023, 6:14pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/11 "2023-07-16T18:14:15Z")

</div>

whoever implemented `box` remote decided to use `--transfers` to control both at the same time - so yes it is possible if you re-implement it in more clever way. You are more than welcomed to give it a try if this is something you need.

---

<div class="post-metadata">

**Author:** ![Turner](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/22d042/32.png) [@Turner](https://forum.rclone.org/u/Turner)\
**Post date:** [July 16, 2023, 6:16pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/12 "2023-07-16T18:16:45Z")

</div>

Understood, so not currently available, but could be added.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [July 16, 2023, 6:18pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/13 "2023-07-16T18:18:14Z")

</div>

In the meantime you can use workaround - wrap rclone in shell script and process files in the loop one by one and then:

`rclone copy src:file1 box:file1 --transfers 100`

given that `box` docs are correct it will result with file being uploaded in 100 chunks.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [July 16, 2023, 6:18pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/14 "2023-07-16T18:18:36Z")

</div>

> [@Turner](#):
>
> Not sure why you feel the need to comment if you have nothing positive to add.

I'm not why you neglected you to use the template as I'm positive we wouldl have all saved some time. By not using the template, you make things more complicated and make the re-use of other people searching for things. That's why we ask for the template and ignoring and making a comment about me being 'positive' is rather rude but here we are.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [July 19, 2023, 6:19pm UTC](https://forum.rclone.org/t/box-com-mult-part-multiple-uploads/40008/15 "2023-07-19T18:19:27Z")

</div>

Closed on July 19, 2023, 6:19pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
