Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

get image from s3 bucket angular

<section data-ng-controller="myCtrl">
    <img ng-src="{{s3Url}}{{image.Key}}" width="200px" height="200px" ng-repeat="image in allImageData">
</section>

$scope.s3Url = 'https://s3-<region>.amazonaws.com/myBucket/';
var bucket = new AWS.S3({params: {Bucket: 'myBucket'}});
  bucket.listObjects(function (err, data) {
    if (err) {
      console.log(err);
    } else {
      console.log(data);
      $scope.allImageData = data.Contents;
    }
  });
Comment

PREVIOUS NEXT
Code Example
Javascript :: js multi line cmmetn 
Javascript :: How to Subtract the numbers in the array, starting from the right in javascript 
Javascript :: add points to numbers js 
Javascript :: How to make PWAs installable js 
Javascript :: adobe target triggerview 
Javascript :: javascript decrement 
Javascript :: movement of objects in javascript 
Javascript :: npm jwt decode 
Javascript :: javascript getter 
Javascript :: vue router "savedposition" with ajax call 
Javascript :: console.log full object 
Javascript :: react fetch request with content type x-www-form-urlencoded 
Javascript :: lodash isequal 
Javascript :: how to convert string to pascal case in javascript 
Javascript :: Define Number Prop Vue 
Javascript :: elasticsearch response format 
Javascript :: how to update specific key of an object in reducer 
Javascript :: p5js no stroke 
Javascript :: hide console log level in js 
Javascript :: javascript true string to boolean 
Javascript :: what is regular expression in javascript 
Javascript :: set proxy for npm 
Javascript :: array from js 
Javascript :: sendgrid mail unique args 
Javascript :: post express node js input 
Javascript :: react add splite image 
Javascript :: stale element reference: element is not attached to the page document 
Javascript :: You are trying to create a styled element with an undefined component.You may have forgotten to import it. 
Javascript :: fullscreen api 
Javascript :: how to coerce a string to number in javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =