Uppy uploader breaking with multiple files drop onto composer

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:

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:

// 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);
  }
);
2 Likes