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

maxSize error not update when change file #1977

Closed khoramshahy closed 7 years ago

khoramshahy commented 7 years ago

<input type="file" class="form-control" id="recomad_file" ngf-select ng-model="formDatas.file" name="recomad_file" ng-required="!isEdit && recomad.display_type != recomad_type.text && formDatas.recomad_file_upload_type=='upload'" accept="{{recomad.display_type}}/*" ngf-max-size="10MB"> hey, thats my code.the problem is when upload a file that is bigger than 10MB, the maxSize error is right but when I change the file which its size is less than 10MB, the maxSize error does not disapear! on the other hand if I upload a file which its size is less than 10MB at the first ita corrext and I dont get the emaxSize error I can't understand why maxSize error dont update when I change the file.

khoramshahy commented 7 years ago

my version was old. I updated and now it works