此代码显示单个图像路径,并将其发送给Laravel,
<div class="user-image" ng-if="vm.postData.id == 0 || vm.fromUpload == 1">
<div class="thumbnail" style="margin-bottom: 0px;">
<img ngf-src="(vm.fromUpload==1) ? vm.postData.uploadfile : 'assets/images/default-user.png';" class="thumb">
</div>
</div>
<div class="user-image" ng-if="vm.postData.id > 0 && vm.fromUpload == 0 ">
<div class="thumbnail" style="margin-bottom: 0px;">
<img ngf-src="(vm.postData.file_path=='') ? 'assets/images/default-user.png' : vm.postData.file_path;" class="thumb">
</div>
</div>
<input id ="files" name="files[]" type="file"
accept="{{ vm.allowedExtension }}" class="btn btn-default"
ng-model="vm.postData.uploadfile" file-model="vm.postData.uploadfile"
onchange="angular.element(this).scope().getFileDetails(this)">
如何在AngularJS的同一页面中显示多个图像?
如何将包含多个图像的file_path发送到Laravel?