Gathering detailed insights and metrics for react-aws-s3
Gathering detailed insights and metrics for react-aws-s3
Gathering detailed insights and metrics for react-aws-s3
Gathering detailed insights and metrics for react-aws-s3
@aws-sdk/client-s3
AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native
react-aws-s3-typescript
Open source npm package to upload your files into AWS S3 Bucket directly using react(typescript template)
@aws-sdk/client-s3-control
AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native
aws-s3-js
upload/delete files from an Amazon S3 bucket
Open Source Module to Upload your Media and files into AWS S3 Bucket directly from Front-end React.
npm install react-aws-s3
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
53 Stars
14 Commits
33 Forks
1 Watchers
2 Branches
3 Contributors
Updated on Mar 10, 2024
Latest Version
1.5.0
Package Id
react-aws-s3@1.5.0
Size
3.22 kB
NPM Version
6.14.4
Node Version
12.16.3
Published on
Mar 06, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
3
Open Source Module to Upload your Media and files into AWS S3 Bucket directly from Front-end React.
S3Client - A Javascript Library for AWS S3 File Upload
Using NPM
npm install --save react-aws-s3
Using Yarn
yarn add react-aws-s3
1import S3 from 'react-aws-s3'; 2 3const config = { 4 bucketName: 'myBucket', 5 dirName: 'media', /* optional */ 6 region: 'eu-west-1', 7 accessKeyId: 'JAJHAFJFHJDFJSDHFSDHFJKDSF', 8 secretAccessKey: 'jhsdf99845fd98qwed42ebdyeqwd-3r98f373f=qwrq3rfr3rf', 9 s3Url: 'https:/your-custom-s3-url.com/', /* optional */ 10} 11 12const ReactS3Client = new S3(config); 13/* Notice that if you don't provide a dirName, the file will be automatically uploaded to the root of your bucket */ 14 15/* This is optional */ 16const newFileName = 'test-file'; 17 18ReactS3Client 19 .uploadFile(file, newFileName) 20 .then(data => console.log(data)) 21 .catch(err => console.error(err)) 22 23 /** 24 * { 25 * Response: { 26 * bucket: "myBucket", 27 * key: "image/test-image.jpg", 28 * location: "https://myBucket.s3.amazonaws.com/media/test-file.jpg" 29 * } 30 * } 31 */ 32});
In this case the file that we want to delete is in the folder 'photos'
1import S3 from 'react-aws-s3'; 2 3 4const config = { 5 bucketName: 'myBucket', 6 dirName: 'media', /* optional */ 7 region: 'eu-west-1', 8 accessKeyId: 'JAJHAFJFHJDFJSDHFSDHFJKDSF', 9 secretAccessKey: 'jhsdf99845fd98qwed42ebdyeqwd-3r98f373f=qwrq3rfr3rf', 10 s3Url: 'https:/your-custom-s3-url.com/', /* optional */ 11} 12 13const ReactS3Client = new S3(config); 14 15const filename = 'hello-world.docx'; 16 17/* If the file that you want to delete it's in your bucket's root folder, don't provide any dirName in the config object */ 18 19//In this case the file that we want to delete is in the folder 'photos' that we referred in the config object as the dirName 20 21ReactS3Client 22 .deleteFile(filename) 23 .then(response => console.log(response)) 24 .catch(err => console.error(err)) 25 26 /** 27 * { 28 * Response: { 29 * ok: true, 30 status: 204, 31 message: 'File deleted', 32 fileName: 'hello-world.docx' 33 * } 34 * } 35 */ 36});
Defaults your bucket to public-read
: http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
config
bucketName
required - Your S3 bucketdirName
required - Your S3 folderName/dirNameregion
required - Your S3 bucket's regionaccessKeyId
required - Your S3 AccessKeyId
secretAccessKey
required - Your S3 SecretAccessKey
s3Url
optional - Your S3 URLDoc: http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/13 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
47 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More