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