-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This commit addresses the problem of not being able to upload the sam… #428
base: master
Are you sure you want to change the base?
Conversation
…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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a minor formatting issue. missing space if (
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;
};
} |
…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.