[英]With NG-File-Upload what is a angular way of clearning the input type=“file” after a successful upload
Using the library here https://github.com/danialfarid/ng-file-upload . 在这里使用库https://github.com/danialfarid/ng-file-upload 。 What is a angular way or clearing the input file from the element after a successful upload?
成功上传后如何从元素清除输入文件的角度方式? (so it goes back to saying "No file selected")
(因此回到说“未选择文件”)
<input ng-file-select ng-model="vm.files" name="filename" accept="*" type="file" ng-file-change="vm.checkFileSize($files)" />
如果将模型vm.files重置为初始值-空数组,则视图也将重置为其初始状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.