mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-28 11:22:34 +02:00
Reset upload input so the same file can be selected again
This commit is contained in:
parent
16d070c19e
commit
04e1e004da
|
@ -85,6 +85,7 @@ class Uploader {
|
|||
filesChanged() {
|
||||
const files = Array.from(this.uploadInput.files);
|
||||
this.triggerUpload(files);
|
||||
this.uploadInput.value = ""; // Reset <input> element so you can upload the same file
|
||||
}
|
||||
|
||||
triggerUpload(files) {
|
||||
|
|
Loading…
Reference in a new issue