How to limit no of files to 1 when drag and drop files

How to limit no of files to 1 when drag and drop files. I need to user to be able to only upload single files. this can be done for click-and-upload but doesn’t work in the drag and drop mode

Unless there’s a bug in the @uppy/drag-drop plugin preventing this from working, this should be available using the restrictions.maxNumberOfFiles option when initializing Uppy. Here’s some example code:

// On initialization
const uppy = new Uppy({
  restrictions: {
    maxNumberOfFiles: 1
  }
})

// Later on
uppy.setOptions({
  restrictions: {
    maxNumberOfFiles: 1
  }
})

Let me know if this works,
- Andrew