ngx-uploader
ngx-uploader copied to clipboard
This commit addresses the problem of not being able to upload the sam…
…e file twice.
Since the value property of the file component does not change, the change event does not fire preventing the user from starting the upload.
By adding a click handler on the input, the value is set to an empty string, causing the 'bug' to not happen.
Could i get some feedback on this ?
What is the status on this? I am also still having this issue. I don't know enough about your code to provide a review.
Not much progress, i haven't got any response unfortunately
What's the status of this PR? It's a really important fix! Please do smth.
Please merge. The workaround for angular 8 is:
<input #fileInput type="file" ngFileSelect ...
@ViewChild('fileInput', { static: false })
fileInput: ElementRef;
ngAfterViewInit() {
// https://github.com/bleenco/ngx-uploader/issues/474
this.fileInput.nativeElement.onclick = function() {
this.value = null;
};
}