Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

s3 list objects in folder node js

var AWS = require('aws-sdk');
AWS.config.update({accessKeyId: 'mykey', secretAccessKey: 'mysecret', region: 'myregion'});
var s3 = new AWS.S3();

var params = { 
 Bucket: 'mystore.in',
 Delimiter: '/',
 Prefix: 's/5469b2f5b4292d22522e84e0/ms.files/'
}

s3.listObjects(params, function (err, data) {
 if(err)throw err;
 console.log(data);
});
Comment

nodejs s3 list objects from folder

var params = {
  Bucket: 'STRING_VALUE', /* required */
  Prefix: 'STRING_VALUE'  // Can be your folder name
};
s3.listObjectsV2(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to redirect to another page after clicking ok in alert 
Javascript :: how to cast in javascript 
Javascript :: split in javascript 
Javascript :: how to print something in javascript 
Javascript :: order by mongodb 
Javascript :: js byte size 
Javascript :: redux toolkit store 
Javascript :: angular.toJson 
Javascript :: audio element javascript 
Javascript :: db.json code 
Javascript :: create new component in angular 
Javascript :: maximum number in javascript 
Javascript :: nuxt get client windows size 
Javascript :: call a function of another component vue 
Javascript :: gym open ai 
Javascript :: pause console debugger in react 
Javascript :: sum array without loop javascript 
Javascript :: dispay react component after some time 
Javascript :: next js css background image 
Javascript :: react-google-login 
Javascript :: arithmetic operators in javascript 
Javascript :: react chartjs 
Javascript :: apps script get last row with data 
Javascript :: components in react 
Javascript :: how to go back to previous route in next.js 
Javascript :: infinite loop in javascript 
Javascript :: in javascipt how to stop further page processing 
Javascript :: js objects 
Javascript :: convert json to excel in javascript 
Javascript :: pass data ino pug nodejs 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =