AngularJS Uploading An Image With ng-upload
There’s little-no documentation on angular for uploading files. A lot of solutions require custom directives other dependencies (jquery in primis… just to upload a file…). After many tries I’ve found this with just angularjs (tested on v.1.0.6) html <input type=”file” name=”file” onchange=”angular.element(this).scope().uploadFile(this.files)”/> Angularjs (1.0.6) not support ng-model on “input-file” tags so you have to do … Read more