Search Posts

Author: Denny Pradipta

Added Input File through JQuery, didn’t submit any data in Angular Controller

First of all, sorry for bad english. I have some problems with Angular 1 and JQuery. Now here’s the thing. In the view, there is a button that adds up a file-type input box. Here is the code in Pug. .col-md-8.form-group#upload-photos input.form-control(type=”file”, ng-file-select=””, name=”photos[0]”, ng-model=”photos[0]”, accept=”image/*”) .col-md-1 a.btn.btn-success#add-photos | <i class=”fa fa-plus”></i> The button, which is the #add-photos will add a file-type input in the #upload-photos div. I have a code in Angular Controller that […]