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() {
|
filesChanged() {
|
||||||
const files = Array.from(this.uploadInput.files);
|
const files = Array.from(this.uploadInput.files);
|
||||||
this.triggerUpload(files);
|
this.triggerUpload(files);
|
||||||
|
this.uploadInput.value = ""; // Reset <input> element so you can upload the same file
|
||||||
}
|
}
|
||||||
|
|
||||||
triggerUpload(files) {
|
triggerUpload(files) {
|
||||||
|
Loading…
Reference in New Issue
Block a user