Upload Images to AWS S3 Bucket in a MERN Project

preview_player
Показать описание

S3 Bucket Policy:
{
"Version": "2012-10-17",
"Id": "Policy1681044780492",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::your-bucket-name"
},
{
"Sid": "Stmt1681044777259",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::your-bucket-name/*"
}
]
}
Рекомендации по теме
Комментарии
Автор

Can we upload can type of file formate with this code ?

adityaparmar
Автор

Hello! I am getting an error message: TypeError: Cannot read properties of undefined (reading 'transfer-encoding')
at hasbody

Has this occurred to you before?

jlimsy
Автор

after adding the policy i am getting an error that is Policy has invalid resource

AKSHAYNeje-gc
Автор

Is it only limited to uploading Images ?

AryanSingh
Автор

Can i know your github username as well as i also want to know how to upload pdf in aws

techytricks
Автор

I cant understand how you are able to make a tutorial and not share a link to your github account. Thanks for wasting my time

melamelawen