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
  • 134,766
  • 23
  • 234
  • 299
SoloThink
  • 41
  • 9

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
  • 137
  • 2