This is my template file:
<form method="post" enctype="multipart/form-data"
action="rest/fileUpload/save">
<div class="col-md-5">
<input type="file" class="browseFile" name="file">
</div>
<div class="col-md-4">
<input type="submit" class="btn btn-success btn-md"
value="Upload" ng-click="uploadFile()" >
</div>
</form>
How do I pass the file in the uploadFile Function?
Here is Sample upload app using angular js - http://www.tutorialspoint.com/angularjs/angularjs_upload_file.htm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With