question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[accept] and [multiple] are not working.

See original GitHub issue

So, I have seen there is a lot of issue like this in the list of issue but.

I am using 6.0.1 I have a default upload component (that use ngx-file-drop but also handle file explorer…)

my component is called

<app-file-upload [formats]="'.csv'" [multiple]="false"></app-file-upload>

then inside my component I have

template =>

  <file-drop dropZoneLabel="{{files[0]?.relativePath || 'No File'}}"
  (onFileDrop)="dropped($event)"
  (onFileOver)="fileOver($event)"
  (onFileLeave)="fileLeave($event)"
  [accept]="formats"
  [multiple]="multiple">

component =>

  @Input() formats: string;
  @Input() multiple: boolean;

never working, I also changed multiple to a string, and formats to like text/csv, always same behaviour, everything is accepted, no filtering.

I ended up adding my custom checking and removing everything by myself.

Is it me that don’t understand or it is just not working ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mnyamorcommented, Oct 11, 2021

Why was this issue closed? It seems the accept attribute is still not working in the ngx-file-drop component when dropping files.

Yeah wondering the same. Seems like drag n drop still allows multiple selection even though multiple is set to false. Could this be reopened?

1reaction
mwunderlichcommented, Jun 7, 2021

Why was this issue closed? It seems the accept attribute is still not working in the ngx-file-drop component when dropping files.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved - "Accept Multiple Calls" not working | 3CX Forums
When a person is on the phone and a second call comes in, they are unable to know about it - it does...
Read more >
<input type="file" multiple="multiple" /> does not allow to select ...
However when I deploy web application and access this JSP; the window explorer popup (which appears on clicking on "browse" does not allow...
Read more >
Windows 10 - Unable to select multiple files.
On occasions (at random) my PC decides not to allow me to select multiple files - as in no CTRL and Shift (all...
Read more >
Can't Select Multiple Files in Windows 10 or 11? Here's What ...
Here are seven troubleshooting steps you can take to restore your ability to select multiple files in Windows 10 and 11.
Read more >
HTML attribute: accept - HTML: HyperText Markup Language
The accept attribute takes as its value a comma-separated list of one or more ... Report problems with this compatibility data on GitHub ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found