angularjs - "Firebase Storage: User does not have permission to access 'user/image/1503219533621'." -


i have upload image firebse, got above error. have update code, what's wrong in code?

//our controller code image uplaod call after click on upload button  /*  * @summary: uploaduserimage , uplaod image  * @param:  event  * @return: na  * @descritipn:na  */  $scope.uploaduserimage = function(event) {       var userimagefile = $("#uploaduserimage")[0].files[0];      var product_storage_ref = firebase.storage().ref('user/image');        var rn = new date().gettime().tostring();      var task = product_storage_ref.child(rn).put(userimagefile).then(function(snapshot){      console.log(snapshot);      })  }
 <span>      <input type="file" id="uploaduserimage">  </span>    <input type="button" class="btn btn-raised diruplbtn" value="submit" ng-      click="uploaduserimage($event)">
enter image description here


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -