Upload component - Enable file upload without remove of current file from the file list


When the number of files reaches limit in the upload component the compinent becomes disable until the file is not removed from the files list. Is it somehow possible to enable it again so the user can upload a file which replaces the preivously uploaded one?


At least you can increase the number of files limit?

i dont want to increase it, it has to be a single file

With a little bit of algebra you can do archive your desired outcome by allowing two files and replacing the second with the first one

There is a feature request ticket for this: https://github.com/vaadin/web-components/issues/562
You can give that a :+1: (on the topmost comment) to boost its visibility.