asafdav / ng-s3upload

Upload to S3 using AngularJS
MIT License
190 stars 83 forks source link

After adding "ngS3upload" as dependency,My page not loaded #35

Closed arepalli-praveenkumar closed 10 years ago

arepalli-praveenkumar commented 10 years ago

Here is my code

My index.html

 <html>
 <head>
<title>UPLOAD</title>
    <script src="/app/ajs/common/scripts/common/angular.min.js"></script>
    <script src="plugins/ng-s3upload.js"></script>
    <script src="s3.js"></script>
  </head>
 <body ng-app="amaup">
     <div ng-controller="docCtrl">
     <input name="file" type="file">
   <div s3-upload bucket="kapptivo" ng-model="file" 
   s3-upload-options="{getOptionsUri: s3OptionsUri}">
   </div>
    </div>
  </body>
  </html> 

here is my script file

   angular.module('amaup',['ngS3upload']).
   controller('docCtrl', ['$scope', function($scope){
alert("docCtrl invoked");
   }]);

This is error url in console. http://errors.angularjs.org/1.2.15/$injector/modulerr?p0=amaup&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.2.15%2F%24injector%2Fmodulerr%3Fp0%3DngS3upload%26p1%3DError%253A%2520%255B%2524injector%253Amodulerr%255D%2520http%253A%252F%252Ferrors.angularjs.org%252F1.2.15%252F%2524injector%252Fmodulerr%253Fp0%253DngSanitize%2526p1%253DError%25253A%252520%25255B%252524injector%25253Anomod%25255D%252520http%25253A%25252F%25252Ferrors.angularjs.org%25252F1.2.15%25252F%252524injector%25252Fnomod%25253Fp0%25253DngSanitize%25250A%252520%252520%252520%252520at%252520Error%252520(%25253Canonymous%25253E)%25250A%252520%252520%252520%252520at%252520http%25253A%25252F%25252Flocalhost%25253A8080%25252Fapp%25252Fajs%25252Fcommon%25252Fscripts%25252Fcommon%25252Fangular.min.js%25253A2%25253A450%25250A%252520%252520%252520%252520at%252520http%25253A%25252F%25252Flocalhost%25253A8080%25252Fapp%25252Fajs%25252Fcommon%25252Fscripts%25252Fcommon%25252Fangular.min.js%25253A16%25253A260%25250A%252520%252520%252520%252520at%252520http%25253A%25252F%25252Flocalhost%25253A8080%25252Fapp%25252Fajs%25252Fcommon%25252Fscripts%25252Fcommon%25252Fangular.min.js%25253A17%25253A262%25250A%252520%252520%252520%252520at%252520http%25253A%25252F%25252Flocalhost%25253A8080%25252Fapp%25252Fajs%25252Fcommon%25252Fscripts%25252Fcommon%25252Fangular.min.js%25253A28%25253A69%25250A%252520%252520%252520%252520at%252520Array.forEach%252520(native)%25250A%252520%252520%252520%252520at%252520r%252520(http%25253A%25252F%25252Flocalhost%25253A8080%25252Fapp%25252Fajs%25252Fcommon%25252Fscripts%25252Fcommon%25252Fangular.min.js%25253A3%25253A280)%25250A%252520%252520%252520%252520at%252520e%252520(http%25253A%25252F%25252Flocalhost%25253A8080%25252Fapp%25252Fajs%25252Fcommon%25252Fscripts%25252Fcommon%25252Fangular.min.js%25253A28%25253A9)%25250A%252520%252520%252520%252520at%252520http%25253A%25252F%25252Flocalhost%25253A8080%25252Fapp%25252Fajs%25252Fcommon%25252Fscripts%25252Fcommon%25252Fangular.min.js%25253A28%25253A86%25250A%252520%252520%252520%252520at%252520Array.forEach%252520(native)%250A%2520%2520%2520%2520at%2520Error%2520(%253Canonymous%253E)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8080%252Fapp%252Fajs%252Fcommon%252Fscripts%252Fcommon%252Fangular.min.js%253A2%253A450%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8080%252Fapp%252Fajs%252Fcommon%252Fscripts%252Fcommon%252Fangular.min.js%253A28%253A400%250A%2520%2520%2520%2520at%2520Array.forEach%2520(native)%250A%2520%2520%2520%2520at%2520r%2520(http%253A%252F%252Flocalhost%253A8080%252Fapp%252Fajs%252Fcommon%252Fscripts%252Fcommon%252Fangular.min.js%253A3%253A280)%250A%2520%2520%2520%2520at%2520e%2520(http%253A%252F%252Flocalhost%253A8080%252Fapp%252Fajs%252Fcommon%252Fscripts%252Fcommon%252Fangular.min.js%253A28%253A9)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A8080%252Fapp%252Fajs%252Fcommon%252Fscripts%252Fcommon%252Fangular.min.js%253A28%253A86%250A%2520%2520%2520%2520at%2520Array.forEach%2520(native)%250A%2520%2520%2520%2520at%2520r%2520(http%253A%252F%252Flocalhost%253A8080%252Fapp%252Fajs%252Fcommon%252Fscripts%252Fcommon%252Fangular.min.js%253A3%253A280)%250A%2520%2520%2520%2520at%2520e%2520(http%253A%252F%252Flocalhost%253A8080%252Fapp%252Fajs%252Fcommon%252Fscripts%252Fcommon%252Fangular.min.js%253A28%253A9)%0A%20%20%20%20at%20Error%20(%3Canonymous%3E)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fajs%2Fcommon%2Fscripts%2Fcommon%2Fangular.min.js%3A2%3A450%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fajs%2Fcommon%2Fscripts%2Fcommon%2Fangular.min.js%3A28%3A400%0A%20%20%20%20at%20Array.forEach%20(native)%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fajs%2Fcommon%2Fscripts%2Fcommon%2Fangular.min.js%3A3%3A280)%0A%20%20%20%20at%20e%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fajs%2Fcommon%2Fscripts%2Fcommon%2Fangular.min.js%3A28%3A9)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fajs%2Fcommon%2Fscripts%2Fcommon%2Fangular.min.js%3A28%3A86%0A%20%20%20%20at%20Array.forEach%20(native)%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fajs%2Fcommon%2Fscripts%2Fcommon%2Fangular.min.js%3A3%3A280)%0A%20%20%20%20at%20e%20(http%3A%2F%2Flocalhost%3A8080%2Fapp%2Fajs%2Fcommon%2Fscripts%2Fcommon%2Fangular.min.js%3A28%3A9

Please give the demo of ngS3Upload.

ghost commented 10 years ago

Hi there, The issue comes from ngSanitize. First you need to download it from http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular-sanitize.js . Then include it in your module.

Cheers!