Skip to content Skip to sidebar Skip to footer

Unknown Provider: $uploadprovider <- $upload

Anyone know why I'm getting Unknown provider on this Angular code ? I am using the Angular File Upload directive and are using this example : http://www.mono-software.com/blog/po

Solution 1:

Just add the dependancy on angularFileUpload and be sure to reference the JS files in the correct order, and you should be good to go

index.html

<scriptsrc="angular-file-upload-shim.min.js"></script><scriptsrc="angular.min.js"></script><scriptsrc="angular-file-upload.min.js"></script>

module.js

angular.module('photoApp', ['ngRoute', 'angularFileUpload']);

Post a Comment for "Unknown Provider: $uploadprovider <- $upload"