ngx-uploader icon indicating copy to clipboard operation
ngx-uploader copied to clipboard

Disallowing multiple file drop on a single file input

Open moniuch opened this issue 2 years ago • 0 comments

Thank you all for creating and maintaining this package ❤️

Is there any pattern that I am missing which could prevent dropping multiple items if the input does not have the multiple attribute on it? Perhaps via UploadOutput.type = 'dropDisallowed'

While I could arbitrarily pick any one from the files array, for the user it wouldn't be an educating and instructive experience, so I wish I could present them a no-entry cursor over the drop area if they are dragging over multiple files in such case.

Or would that be a feature request?

moniuch avatar Feb 05 '22 23:02 moniuch