carbon-components-vue icon indicating copy to clipboard operation
carbon-components-vue copied to clipboard

File upload component ignores `multiple=false` when dragging files

Open themoenen opened this issue 1 year ago • 0 comments

Detailed description

Describe in detail the issue you're having. The multiple flag for the file uploader compoment (which controls whether you can upload more than one file or not) is ignored when you drag files onto it.

Is this a feature request (new component, new icon), a bug, or a general issue? Bug

Is this issue related to a specific component? The file uploader compoment

What did you expect to happen? What happened instead? What would you like to see changed? It should be impossible to select more than one file when multiple is set to false, regardless of the way the files are added.

What browser are you working in? Chrome

What version of the Carbon Design System are you using? 3.0.21

What offering/product do you work on? Any pressing ship or release dates we should be aware of? OpenAD - No urgency as we'll build our own alternative component.

<cv-file-uploader
  label="Dataset"
  accept=".csv"
  helperText="Upload your dataset as CSV file."
  :multiple="false"
  @change="(e: Event) => emit('change', e)"
/>

Image

themoenen avatar Oct 21 '24 09:10 themoenen