0

I want to create an file upload button with send some parameters Here is my code: it is not working for me. could you help me?

<pre>
   <input type="file" name="file" 
    onchange="angular.element(this).scope().uploadFile(this.files,project._id, activity._id, action.name, document._id)"/>
</pre>
Pankaj Parkar
  • 130,886
  • 22
  • 223
  • 289
SoloThink
  • 41
  • 8

1 Answers1

0

Insert this HTML into your code where onFileSelect function will be called when file is selected.

<div class="col-xs-2 padding_sm" ng-file-select="onFileSelect($files,$index)"
 multiple accept="image/*"></div>
Lucky
  • 127
  • 2