danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.6k forks source link

ngf-change not working in windows #2030

Closed dream-play closed 6 years ago

dream-play commented 6 years ago

<div ngf-select ngf-drop ng-model="ctrl.vm.file" name="upload-csv-form-element" ngf-pattern="'*/*'" ngf-accept="'*/*'" ngf-change="ctrl.vm.fileSelected($files, $file, $newFiles, $duplicateFiles, $invalidFiles, $event)" ng-disabled="ctrl.vm.isUploading" class="form-control file-upload">Select File </div>

I am trying to upload a "tab separated file", when I browse to the file I want to select from my WINDOWS 7/10 system, and double click it, the fileSelected function doesn't get any parameter values set. They are null/empty. Everything works just fine in Mac / Linux system.

I tried in incognito mode, in both chrome and firefox.

dsmithco commented 6 years ago

I am having this issue too. Any solution?

vijikraj commented 6 years ago

I face this issue too.File Selected value is null.

dream-play commented 6 years ago

I was able to solve it by getting rid of most of the unnecessary ngf-S