A component for upload with preview
2 people use it
Submitted by: 2833993?v=3 IgorDePaula


1- Add the script in public_html/js/ngUploadPreview.js on your html.

2- Add file-model='myFile' in your form

3- Add a canvas element with ID 'canvas'

4- In your controller inject the UploadSrv, and in uploadFileToUrl method put $scope.myFile, and url of server for upload.

See public_html/index.html for example.

comments powered by Disqus
This page was last updated about 4 years ago.