Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maikdiepenbroek
Copy link

…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.

…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.
@CLAassistant
Copy link

CLAassistant commented Feb 19, 2018

CLA assistant check
All committers have signed the CLA.

@maikdiepenbroek
Copy link
Author

Could i get some feedback on this ?

@fireappsAdmin
Copy link

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.

@maikdiepenbroek
Copy link
Author

Not much progress, i haven't got any response unfortunately

@maximelafarie
Copy link

What's the status of this PR? It's a really important fix! Please do smth.

Copy link
Contributor

@osahner osahner left a 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 (

@osahner
Copy link
Contributor

osahner commented Oct 25, 2019

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;
    };
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants