ngx-uploader icon indicating copy to clipboard operation
ngx-uploader copied to clipboard

This commit addresses the problem of not being able to upload the sam…

Open maikdiepenbroek opened this issue 7 years ago • 6 comments

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

maikdiepenbroek avatar Feb 19 '18 07:02 maikdiepenbroek

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 19 '18 07:02 CLAassistant

Could i get some feedback on this ?

maikdiepenbroek avatar Mar 09 '18 18:03 maikdiepenbroek

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.

fireappsAdmin avatar Jun 11 '18 17:06 fireappsAdmin

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

maikdiepenbroek avatar Jun 11 '18 17:06 maikdiepenbroek

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

maximelafarie avatar Oct 16 '18 12:10 maximelafarie

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

osahner avatar Oct 25 '19 14:10 osahner