# Uppy uploader נשבר עם מספר קבצים שנגררו על הקומפוזר

**URL:** <https://meta.discourse.org/t/uppy-uploader-breaking-with-multiple-files-drop-onto-composer/210072>\
**Category:** Bug\
**Created:** [24 בנובמבר,‏ 2021,‏ 5:01pm UTC](https://meta.discourse.org/t/uppy-uploader-breaking-with-multiple-files-drop-onto-composer/210072 "2021-11-24T17:01:09Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [26 בנובמבר,‏ 2021,‏ 5:20am UTC](https://meta.discourse.org/t/uppy-uploader-breaking-with-multiple-files-drop-onto-composer/210072/7 "2021-11-26T05:20:03Z")

</div>

A final update before (my) weekend. I’ve got this fix that should be merged early next week that will restore the “old” way of doing things from pre-uppy, but inside uppy. So your implementation will go back to working correctly after this:

[https://github.com/discourse/discourse/pull/15105](https://github.com/discourse/discourse/pull/15105)

However I will also be adding a subsequent PR that changes `addComposerUploadHandler` to send through _multiple_ files to the handler callback in an array, which will remove the need for you to set up a queue and `setTimeout` callbacks to handle multiple files coming through. I think this is more correct anyway, and an overall improvement to the API.

So your handler will then turn into something like this:

```javascript
// Register custom upload handler for videos.
api.addComposerUploadHandler(
  ["mp4", "mov", "mkv", "avi", "m4v"],
  (files, editor) => {
    console.log("Handling upload for", files.map((file) => file.name).join(", "));
    sendToGDrive(files, api);
  }
);

```

---

_[View the full topic](https://meta.discourse.org/t/uppy-uploader-breaking-with-multiple-files-drop-onto-composer/210072)._
