Directive for filepicker.io
-
Add filepicker script to your index.html file before
<script type="text/javascript" src="//api.filepicker.io/v2/filepicker.js"></script>
-
Add "filepicker" module to app.js
html angular.module("App", ["filepicker"]);
-
Use the following tag wherever you want to add filepicker.
<div filepicker api-key="your-api-key" path="/s3ServerPath/" pickerclass="btn btn-default" container="Mys3Bucket" multiple="true" mimetype="*" callback="callBackToExecuteAfterUpload(file)" multiple=false>Add Photo</div>